Mehmet the Conqueror immediately converted the building to an imperial mosque, and built a brick minaret at the southeast corner.
The building used to be a Catholic church.  
mnli hypothesis: The building used to be a Catholic church.   premise: Mehmet the Conqueror immediately converted the building to an imperial mosque, and built a brick minaret at the southeast corner.