After Jahan Shah had taken Herat he was in a tough position and unable to keep it due to pressures from within his kingdom of Kara Koyunlu plus the increasing threat from Uzun Hasan of Aq Qoyunlu. He was obliged to negotiate the borders of his state with Abu Sa'id Mirza and after negotiations Jahan Shah decided to return territorial demarcation to Shah Rukh's times (Jahan Shah keeping Iraq-i-Ajam while Abu Sa'id keeping Khurasan). Thus, Khurasan, Mazandaran and Jurjan were returned to the Timurids and Abu Sa'id Mirza returned and took Herat a second time on December 22, 1458.[2]