Since the Song Dynasty, the Chinese government had formed a clearer concept of coastal defense, and patrolled the South China Sea waters.
In the Yuan Dynasty, China's maritime control was extended to the southern and central sections of the South China Sea.
According to records in Qiong Tai Zhi written by Tang Zhou in the Ming Dynasty (AD 1368-1644), "The naval forces stationed in Baisha during the Yuan Dynasty was originally the troops that had followed the Emperor Xiangxing of Song from Zhejiang.
Yue Da Ji the book completed in the Ming Dynasty (AD 1368-1644) recorded the incident of Liu Yaohui, Governor of Fujian in the reign of Emperor Wanli during the Ming Dynasty, cracking down on Lin Feng and Lin Daoqian, two pirates that had fled to the Port of Daimao in Luzon, in cooperation with Luzon.
It is recorded in Ming Tai Zu Shi Lu that Zhu Yuanzhang the founding emperor of the Ming Dynasty reinforced the naval presence by establishing the Hainan Garrison in 1369 (the second year of Hongwu) on the basis of the naval forces of the Yuan Dynasty.
Zhu Yuanzhang the founding emperor of the Ming Dynasty (AD 1368-1644) clarified his philosophy of coastal defense in Decree for the Commander of Hainan Garrison.
In Hai Fang Tu Lun the book written by Hu Zongxian, Co-Minister of War in the Ming Dynasty (AD 1368-1644), the military deployment for coastal defense in the Ming Dynasty was recorded.