All people must wash themselves before they pray. Mosques often have fountains or other facilities for washing in their entrances or courtyards, so that people can perform the washing ritual before prayer.