Haicheng was elevated to county status on 17 January 1567 during the Ming Dynasty, and was the site of Yuegang (Moon Harbor), a major seaport handling the majority of maritime trade with Southeast Asia.