Salamieh (Arabic: سلمية Salamieh) is a city and district in western Syria, in the Hama Governorate. It is located 33 kilometres (21 miles) southeast of Hama, 45 kilometres (28 miles) northeast of Homs. The city is nicknamed the "mother of Cairo" because it was the birthplace of the second Fatimid caliph al-Qa'im bi-Amr Allah, whose dynasty would eventually establish the city of Cairo, and the early headquarters of his father Abdullah al-Mahdi Billah who founded the Fatimid Caliphate. The city is an important center of the Shi'ite Nizari Isma'ili and Taiyabi Isma'ili Islamic schools and also the birthplace of poet Muhammad al-Maghut. The population of the city is 66,724 (2004 census).