The story here
The Mosque of Ahmad Ibn Tulun appears during the arrival sequence in Cairo in The Spy Who Loved Me (1977), by Lewis Gilbert. It is distinct from the adjoining Gayer-Anderson Museum, whose roof is the location of Bond’s fight with Sandor. The exterior of the Great Temple of Ramesses II represents the joint British/Soviet intelligence headquarters in the same film.
The mosque is on Ahmad Ibn Tulun Square, in Sayyida Zaynab, Cairo. Ask first before you visit.


