<Table> <Tr> <Td_colspan="3"> Abbasid Caliphate </Td> </Tr> <Tr> <Td_colspan="3"> ٱلْخِلافَةُ ٱلْعَبَّاسِيَّة </Td> </Tr> <Tr> <Td_colspan="3"> <Table> <Tr> <Td> </Td> <Td> <Ul> <Li> 750--1258 </Li> <Li> 1261--1517 (under the Mamluk Sultanate of Cairo) </Li> </Ul> </Td> <Td> </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td_colspan="3"> Black Standard </Td> </Tr> <Tr> <Td_colspan="3"> Abbasid Caliphate at its greatest extent, c. 850 . </Td> </Tr> <Tr> <Td_colspan="2"> Capital </Td> <Td> <Ul> <Li> Kufa (750--762) </Li> <Li> Baghdad (762--796, 809--836, 892--1258) </Li> <Li> Raqqa (796--809) </Li> <Li> Samarra (836--892) </Li> <Li> Cairo (1261--1517) </Li> </Ul> </Td> </Tr> <Tr> <Td_colspan="2"> Languages </Td> <Td> Arabic (central administration); various regional languages </Td> </Tr> <Tr> <Td_colspan="2"> Religion </Td> <Td> Sunni Islam </Td> </Tr> <Tr> <Td_colspan="2"> Government </Td> <Td> Caliphate </Td> </Tr> <Tr> <Td_colspan="2"> Caliph </Td> <Td> </Td> </Tr> <Tr> <Td> </Td> <Td> 750--754 </Td> <Td> As - Saffah (first) </Td> </Tr> <Tr> <Td> </Td> <Td> 1242--1258 </Td> <Td> Al - Musta'sim (last Caliph in Baghdad) </Td> </Tr> <Tr> <Td> </Td> <Td> 1508--1517 </Td> <Td> al - Mutawakkil III (last Caliph in Cairo) </Td> </Tr> <Tr> <Td_colspan="2"> History </Td> <Td> </Td> </Tr> <Tr> <Td> </Td> <Td> Established </Td> <Td> 750 </Td> </Tr> <Tr> <Td> </Td> <Td> Disestablished </Td> <Td> 1517 </Td> </Tr> <Tr> <Td_colspan="2"> Currency </Td> <Td> <Ul> <Li> Dinar (gold coin) </Li> <Li> Dirham (silver coin) </Li> <Li> Fals (copper coin) </Li> </Ul> </Td> </Tr> <Tr> <Td_colspan="3"> <Table> <Tr> <Td> Preceded by </Td> <Td> Succeeded by </Td> </Tr> <Tr> <Td> <Table> <Tr> <Td> </Td> <Td> Umayyad Caliphate </Td> </Tr> </Table> </Td> <Td> <Table> <Tr> <Td> Ottoman Empire </Td> <Td> </Td> </Tr> <Tr> <Td> Fatimid Caliphate </Td> <Td> </Td> </Tr> <Tr> <Td> Mamluk Sultanate (Cairo) </Td> <Td> </Td> </Tr> <Tr> <Td> Saffarid dynasty </Td> <Td> </Td> </Tr> <Tr> <Td> Ziyadid dynasty </Td> <Td> </Td> </Tr> <Tr> <Td> Aghlabids </Td> <Td> </Td> </Tr> <Tr> <Td> Mongol Empire </Td> <Td> </Td> </Tr> </Table> </Td> </Tr> </Table> </Td> </Tr> </Table> <Tr> <Td_colspan="3"> Abbasid Caliphate </Td> </Tr>

Where did the abbasids moved their capital to