His first act was to ride to Haghia Sophia and order that it be converted into a mosque; on the following Friday, he attended the first Muslim prayers in what came to be called Ayasofya Camii (Mosque of Haghia Sophia).
It took less than two weeks to transform Haghia Sophia into a mosque.