The Lala Mustafa Pasha Mosque (Turkish: Lala Mustafa Paşa Camii), originally known as the Cathedral of Saint Nicholas and later as the Ayasofya (Saint Sophia) Mosque of Mağusa, is the largest medieval building in Famagusta, Northern Cyprus. Built between 1298 and c. 1400, it was consecrated as a Roman Catholic cathedral in 1328. The cathedral was converted into a mosque after the Ottoman Empire captured Famagusta in 1571 and it remains a mosque to this day. From 1954 the building has taken its name from Lala Mustafa Pasha, the Grand Vizier of the Ottoman Empire from Sokolovići in Bosnia, who served Murat III and led Ottoman forces against the Venetians in Cyprus.
The French Lusignan dynasty ruled as Kings of Cyprus from 1192 to 1489 and brought with them the latest French taste in architecture, notably developments in Gothic architecture.
The cathedral was constructed from 1298 to 1312 and was consecrated in 1328. A unique inscription on a buttress beside the south door records the progress of construction in 1311. "After an unfortunate episode when the current bishop embezzled the restoration fund", Bishop Guy of Ibelin bequeathed 20,000 bezants for its construction. The Lusignans would be crowned as Kings of Cyprus in the St. Sophia Cathedral (now Selimiye Mosque) in Nicosia and then crowned as Kings of Jerusalem in the St Nicholas Cathedral in Famagusta.
The building is built in Rayonnant Gothic style, quite rare outside France, though "mediated through buildings in the Rhineland". The historic tie between France and Cyprus is evidenced by its parallels to French archetypes such as Reims Cathedral. Indeed, so strong is the resemblance, that the building has been dubbed "The Reims of Cyprus"; it was built with three doors, twin towers over the aisles and a flat roof, typical of Crusader architecture.