It is said that in the ancient time, flocks of egrets (Bailu in Chinese) migrated to dwell on Xiamen Island from time to time and that is why people call Xiamen "Ludao" (Island of Egrets) and Xiagu Strait "Lujiang" (River of Egrets).
The first settlement of people on Xiamen Island dates back to the latter part of the New Stone Age. That was three to four thousand years ago. And the recorded history dates back to the middle period of the Tang Dynasty, which was more than 1140 years ago. During the Tianbao Period of the Tang Dynasty, the ethnic Chinese surnamed Xue (薛) and Chen (陈) migrated to Xiamen Island from Fu'an in the east of Fujian Province and Zhangzhou in the south of Fujian Province and settled at the southern and northern foot of the Hongjishan Mountain respectively.
The administrative organization of Xiamen City was first set up in the Song Dynasty. It was then affiliated to Tongan County, Quanzhou Prefecture. In the twentieth year during the Hongwu Period in early Ming Dynasty (1387), the imperial government started to build stockade villages and forward posts on the island and named the island "Xiamen", meaning the "Gate of the Motherland". And the geographical name of "Xiamen" became the official name of the island despite that Xiamen was once renamed "Siming Prefecture" and "Siming County" during the several hundred years from then on. In 1933, Xiamen was officially established as a city. That made it the first city set up in Fujian Province.