Question: who defeated the ottoman empire?
Answer: In the Battle of Ankara in 1402, Timur defeated the Ottoman forces and took Sultan Bayezid I as a prisoner, throwing the empire into disorder. The ensuing civil war, also known as the Fetret Devri, lasted from 1402 to 1413 as Bayezid's sons fought over succession.