 On 20 July 1402, his father Bayezid was defeated in the Battle of Ankara by the Turko-Mongol conqueror and ruler Timur.The brothers (with the exception of Mustafa, who was captured and taken along with Bayezid to Samarkand) were rescued from the battlefield, Mehmed being saved by Bayezid Pasha, who took him to his hometown of Amasya.Mehmed later made Bayezid Pasha his grand vizier (1413–1421).