Egypt’s first mosque was founded here around 642, at the heart of the new capital, Fustat. The building standing today is the result of successive rebuildings.