Hafsid architecture developed under the patronage of the Hafsid dynasty in Ifriqiya (roughly present-day Tunisia) during the 13th to 16th centuries. Evolving from earlier Almohad and Ifriqiyan traditions, it was later influenced further by Mamluk architecture of Egypt and Syria and it increasingly deviated from the style of Moorish architecture in al-Andalus and the western Maghreb. After Hafsid rule ended, the trends of this architectural style continued to develop and characterize Tunisian architecture during the following Ottoman period.[1][2]: 213