a well-known Azerbaijani historian, Sabayil is the castle mentioned by Abdurrashid Al-Bakuvi, a 15th-century geographer who said that the castle was destroyed during the 13th-century Mongol invasion . Al-Bakuvi, a native of Baku, wrote in 1430 in his "Kitab-talkhis el-asar ve el-melik el-gahhar": "Baku has two castles, very strong, built of stone.