The annexation of Georgia was thus annexation of Iranian land, which made it inevitable that the new Iranian shah, Fath Ali Shah Qajar, would fight the two 19th-century wars with Russia to keep its Iranian domains safe.[26] The very first war however, the 1804-1813 war, turned out in a huge failure. Despite Iranian successes in the earlier stages of the war, the successful late Russian campaigns, notably those at Aslanduz and Lankaran, made Iran forcefully sue for peace. The Treaty of Gulistan that was concluded in 1813, forced Qajar Iran to irrevocably cede Georgia, as well as Dagestan and most of modern-day Azerbaijan to Imperial Russia, amongst the other terms of the treaty.[27]