 The latter was finally defeated by Karim Khan and his sons, Agha Mohammad Khan and Hossein Qoli Khan Qajar, were brought to Shiraz as hostages.Karim Khan's monuments in Shiraz include the famous Arg of Karim Khan, Vakil Bazaar, and several mosques and gardens.He is also responsible for building of a palace in the town of Tehran, the future capital of the Qajar dynasty.