In the Battle of Ankara in 1402, Timur defeated the Ottoman forces and took Bayezid I as a prisoner, throwing the empire into disorder.