The er-Roua Mosque is located slightly northwest of the Heri al-Mansur and was built on the orders of Sultan Muhammad ibn Abdallah (ruled between 1757 and 1790).[1][2] It the largest mosque in Meknes,[3][9] covering an area of 4930 square meters.[4] The mosque consists of a large square courtyard (sahn) measuring 53 meters per side, and an interior prayer hall to the southeast divided into 4 transverse naves by three rows of horseshoe arches.[20]:391 At the middle of the courtyard is a large water basin and fountain, while at its northern corner stands the minaret. The mosque has three entrances arranged symmetrically on the central axes of the courtyard. On the mosque's northeast side is a long triangular courtyard which held a madrasa.