The Mosque of Ahmad Ibn is located in Cairo, Egypt. It is arguably the oldest mosque in the city surviving in its original form, and is the largest mosque in Cairo in terms of land area. The mosque was commissioned by Ahmad ibn ln, the Abbassid governor of Egypt from 868884 whose rule was characterized by de facto independence.
The historian al-Maqrizi lists the mosque's construction start date as 876 AD, and the mosque's original inscription slab identifies the date of completion as 265 AH, or 879 AD. The mosque was constructed on a small hill called Gebel Yashkur, "The Hill of Thanksgiving." One local legend says that it is here that Noah's Ark came to rest after the Deluge, instead of at Mount Ararat.