Religious architecture had no requirements and nowadays there is a similar situation. The main thing to influence the design of buildings was their functionality. If today almost everyone can access temples, mosques, churches, earlier only privileged community members could enter them. In ancient Egypt and India, only priests were allowed to enter such buildings, while members of higher society could approach temples in Near East, Mexico, and other countries.