The "Ulu Camii" or "Great Mosque" is the largest mosque in Bursa, the first capital of the Ottoman Empire, and a landmark of early Ottoman architecture as it evolved out of Seljuk Turkish architecture. Ordered by Sultan Bayezid I, the mosque was designed and built by architect Ali Neccar in 1396–1399. Bayezid I was the fourth ruler of the Ottoman empire. Shortly after the construction of this mosque he suffered one of the empire's worse defeats at the hands of Timur (Tamerlane) at the Battle of Ankara in 1402. Tradition holds that Timur went on to burn the mosque that same year and that the Qaramanid ruler Mehmed Bey did so again during a siege of the city in 1412. Whatever the case, the first recorded repairs to the mosque took place in 1493. The mosque underwent further restorations across its history. Following a damaging earthquake in 1855 which caused the roof to collapse, the mosque was closed for a number of years. Repairs were completed in 1889.