sentences:  In 1796, following Agha Mohammad Khan's return to mainland Persia, Catherine the Great ordered her army to conquer the Caucasus.Ibrahim began negotiating with the Russian commanders and agreed to cooperate with them in exchange for maintaining his rule in Karabakh.Soon after Catherine the Great died, her successor, Paul, abandoned her plans for the region and recalled the Russian troops.