At a glance
- Rabat, the capital: 95°, east, 4,757 km from the Kaaba.
- Casablanca, the largest city: 94°, east, 4,826 km from the Kaaba.
- The Qibla turns by 11° across the country, from 88° in Guelmim to 99° in Oujda.
- Closest to Makkah: Oujda, 4,317 km. Farthest: Guelmim, 5,052 km.
- Around Rabat, magnetic north and true north are less than a degree apart, so a needle compass can be read as it is.
- Prayer times in Morocco: our country guide explains which calculation method to choose in the Awwab app.
Qibla from every city in Morocco
Cities of 100,000 people or more, largest first.
| City | Qibla | Direction | Distance to the Kaaba (km) |
|---|---|---|---|
| Casablanca | 94° | east | 4,826 |
| Rabat | 95° | east | 4,757 |
| Fes | 96° | east | 4,589 |
| Tangier | 97° | east | 4,684 |
| Marrakesh | 91° | east | 4,852 |
| Salé | 95° | east | 4,755 |
| Agadir | 89° | east | 5,004 |
| Meknes | 95° | east | 4,638 |
| Oujda | 99° | east | 4,317 |
| Kenitra | 95° | east | 4,737 |
| Tétouan | 97° | east | 4,642 |
| Al Hoceima | 98° | east | 4,509 |
| Temara | 94° | east | 4,763 |
| Safi | 91° | east | 4,971 |
| Mohammedia | 94° | east | 4,805 |
| Khouribga | 93° | east | 4,755 |
| El Jadida | 93° | east | 4,907 |
| Beni Mellal | 93° | east | 4,700 |
| Salé Al Jadida | 95° | east | 4,749 |
| Ait Melloul | 89° | east | 4,995 |
| Nador | 99° | east | 4,417 |
| Dar Bouazza | 93° | east | 4,844 |
| Taza | 97° | east | 4,501 |
| Settat | 93° | east | 4,822 |
| Berrechid | 93° | east | 4,821 |
| Khemisset | 95° | east | 4,685 |
| Inezgane | 89° | east | 4,998 |
| Ksar El Kebir | 96° | east | 4,683 |
| Larache | 96° | east | 4,708 |
| Guelmim | 88° | east | 5,052 |
| Khenifra | 94° | east | 4,640 |
| Berkane | 99° | east | 4,358 |
| Taourirt | 98° | east | 4,402 |
| Bouskoura | 94° | east | 4,829 |
| Al Fqih Ben Çalah | 93° | east | 4,733 |
| Oued Zem | 94° | east | 4,724 |
| El Kelaa des Srarhna | 92° | east | 4,798 |
| Sidi Slimane | 95° | east | 4,677 |
| Errachidia | 94° | east | 4,517 |
Not on the list? Search any town or use your location on the live compass.
Reading these numbers
Each bearing is measured clockwise from true north along the shortest path over the globe, a great circle, which is how the Qibla is worked out. A flat map can mislead, because the Earth is round.
Phone compasses work best after calibrating with a figure-8, away from metal and magnetic cases. Our guide to finding the Qibla also covers the sun, the local mosque and praying when unsure.
Qibla in other countries
Algeria Angola Congo - Kinshasa Egypt Ethiopia Kenya Mozambique Nigeria South Africa Sudan Tanzania Uganda
City data: GeoNames (CC BY 4.0). Magnetic declination: the World Magnetic Model 2025 (NOAA and the British Geological Survey).