Once the main church of Hagia Sophia, the building is magnificent and awe-inspiring. It was built in 1209-1326 and was once a Frankish cathedral.