This paper examines the social and spatial change in Jinmencheng, Fujian during the Ming and Qing dynasties by drawing on official documents, local gazetteers, genealogy books, and field data. First, I discuss the political and spatial dimensions of the Weisuo system in the early Ming dynasty and the process of construction outposts for coastal defense in Fujina. Second, I focus on the construction of Jinmencheng as part of the coastal defense scheme and its implications. Finally, the decline of the Weisuo system led to the transformation of military towns. Aw a result, Jinmencheng gradually turned into a lineage dominated town. The Evacuation policy, which forcing the residents of the coastal area, including those in Jinmen, to move inland as a strategy to counterattack Koxinga, was the last straw to break the camel's back. The implementation of forced evacuation scorched Jinmencheng. In consequence, the political center was switched to Houpu later on. This paper sheds light on the evolution of a military town and on the construction of villages and towns in the coastal area since the Ming.