The Gayer-Anderson Museum beside the Ibn Tulun mosque was built as a private residence in 1540 and amalgamated with a neighboring house called the house of the Cretan Woman ( Bayt al-Kritliya ) dating from 1631 .
The Gayer-Anderson Museum was built for the benefit of the public .