Built by Ahmad ibn Tulun, founder of Tulunids, the first independent dynasty of Turkic origin to rule Egypt, the complex is consists of bricks in its entirety, and it was completed in 879.
Bearing traces of Abbasid and Samarra traditions, its spiral-shaped minaret distinguishes the mosque from the other religious buildings in Egypt.