Mecca is the Islamic holy city and thus Muslims face this city while they pray. In mosques, a qibla wall denotes the direction of Mecca and Muslims align themselves toward this wall for prayer. If praying outside a mosque, facing the direction of Mecca is accomplished on one's own.

More Info: en.wikipedia.org