The hiatus ended in May when Ulugh Beg, who was ruling from Samarqand, took Abu Bakr, son of Muhammad Juki captive and stationed his own troops in Balkh, which had formerly been the latter's territory. When Ulugh Beg heard that Ala al-Dawla had gathered his army in a move to block him, his amir's advised him to make peace with his nephew. Ala al-Dawla, who had just learned that his brother Abul-Qasim Babur was making raids near Herat, agreed to the proposal, allowing Ulugh Beg to keep much of Abu Bakr's former territories.