Pan An Wei, nicknamed "He Ba Wei", is located in Zhengang village, Zhengang Township, 20 km south of Anyuan County. The building was first initiated in the 10th year of Xianfeng Emperor’s reign in Qing Dynasty(1860), by Chen Bugao, 2nd son of Chen Langting, builder of "Dongshengwei", and completed in the sixth year of Tongzhi Emperor’s reign(1867), spanning the whole 7 years with a tremendous amount of expense.
Pan An Wei, facing north, is slightly square. Turrets, one story higher than ground floor, are constructed on the four corners of the enclosure, corresponding to one another. The guarding towers are 12.5 m, complete with enclosed walls 9.35 m high and wall body 1.2 m thick. The housing enclosure consists of three layers in total. The wall of the first layer is constructed by laying boulder with tabia, with the joints filled with tung oil and glutinous rice, as hard as iron when drying, while the outer wall of the second and third is inlaid with black bricks, with the inner wall built with adobes, which is commonly known as "gold wrapping silver". The enclosure first and second floors are mounted with lattice windows, 50 cm long and 15 cm wide, surrounded by rectangular granite slab, whereas those of the third and fourth, with brick carvings and water chestnut-shaped flower windows. Three gates facing to the north of the enclosure houses, above the middle door frame is inlaid with brick carving with three regular-script characters reading "Pan An Wei". The main gate leads to three halls through two doors one after the other. Above the front door frame of the hall is inlaid with brick carving with four regular-script characters of "Luxuriant Osmanthus and Fragrant Orchid". The entire complex contains 96 houses, 86 m long and 76 m wide, occupying 6,536 km2. "Pan An Wei", after the founding of the new China, was taken over by Zhengang Grain Management Station.
After the reform and opening up, "Pan An Wei", influenced by "Dongshengwei", stands out to be representative of Hakka enclosure houses, having received a fascinated host of home and foreign tourists and scholars for visit or investigation, making the live model offering precious materials for the study of the architectural skill of Hakka enclosure in Anyuan.