In 1402, however, Timur (Tamerlane) won the Battle of Ankara against the Ottomans, putting a serious check on the Ottoman state for the two following decades and handing back the territories of most of the Beyliks to their former ruling dynasties.