Question: who turned the hagia sophia into a mosque
Answer: As described by several Western visitors ( such as the Córdoban nobleman Pero Tafur and the Florentine Cristoforo Buondelmonti ) , the church was in a dilapidated state , with several of its doors fallen from their hinges ; Mehmed II ordered a renovation as well as the conversion .