<Tr> <Td> Ghaznavid Empire </Td> <Td> 975--1187 </Td> </Tr> <Tr> <Td> Ghurid dynasty </Td> <Td> pre-879--1215 </Td> </Tr> <Tr> <Td> Seljuk Empire </Td> <Td> 1037--1194 </Td> </Tr> <Tr> <Td> Khwarazmian dynasty </Td> <Td> 1077--1231 </Td> </Tr>

The umayyad dynasty moved their capital to this city