According to the 12th-century author Al-Idrisi mentioned the Hawiye clan occupied the coastal areas between Ras Hafun and Merca, as well as the lower basin of the lower Shabelle river. Al-Idrisi's mention of the Hawiye is the first documentary reference to a specific Somali group in the Horn. Later Arab writers also make references to the Hawiye clan in connection with both Merca and the lower Shabelle valley. Ibn Sa'id (1214–74), for instance, considered Merca to be the capital of the Hawiye, who lived in fifty villages on the bank of a river which he called "the nile of Mogadishu, a clear reference to the Shabelle river.