Why doesn't the Great Mosque of Córdoba face Mecca?

The short answer: Córdoba's Mosque-Cathedral points well south of the direction of Mecca, in the same direction as the streets of the old Roman city. Why that direction was chosen, nobody knows for certain. What we do know is that it wasn't an oversight: in the 10th century a caliph had the chance to correct it, and decided not to.

Rows of red-and-white striped arches stretching into the distance in the prayer hall of Córdoba's Mosque-Cathedral

What is the qibla?

Walk into the forest of columns and let the aisles carry you along. They all run towards the same wall, the one on the far side from the Court of the Orange Trees. That's the qibla: in a mosque, the wall that shows the direction of prayer. Worshippers face it, and in it opens the mihrab, the spot that marks that direction. In Córdoba it's the famous one with the mosaics: not just a niche, but a small eight-sided room under a shell-shaped dome.

The direction of prayer is towards Mecca. So you'd expect Córdoba's qibla, like any other, to point that way. Bring a compass and you're in for a surprise: it doesn't, and not by a couple of degrees either.

So which way does the Mezquita face?

The specialist David A. King, in a study devoted to this question, gives the figures. The building is oriented at about 60 degrees south of east. The qibla worked out for Córdoba today, on the other hand, lies at about 10 degrees south of east. In other words, the wall faces much further south than it would if it were aimed at Mecca.

Along the way, King disposes of two ideas you'll hear a lot. One is that the mosque simply faces "south". The other is that it faces Damascus, the city the Umayyad family had ruled from, the same family as the emirs and caliphs of Córdoba. It's a catchy explanation, and it gets repeated often. King calls it a mistake.

Why that direction? The streets of Roman Córdoba

The most striking fact is a different one. The mosque's orientation matches the orthogonal grid of Roman Corduba, the street plan of the ancient city, which was itself aligned with the sun at the solstices. Nor is it a Córdoba quirk: the same orientation turns up in other Andalusi and North African mosques.

A match doesn't explain a choice. The exact reason is, for now, a matter of interpretation, and King puts one forward. Some medieval schemes of "sacred geography" divided the world up around the Kaaba, the shrine at Mecca, and gave al-Andalus its north-west wall. According to King, all the Andalusis needed was for their qibla wall to run parallel to that wall of the Kaaba, which it does, and in Córdoba that direction could be found from the sun, by watching where it rises and sets at the solstices. If King's right, the idea wasn't to aim at Mecca as a point on the map, but to stand before the stretch of the shrine that was theirs.

It's a possible explanation, put forward by a specialist. Not a certainty: King himself admits that no medieval text describes the method.

Who laid out the qibla? The tradition of the twenty-eight

The chronicles tell it their own way. A 12th-century writer, Ibn Bashkuwal, quoted much later by the compiler al-Maqqari, wrote that Abd al-Rahman I arrived in al-Andalus with twenty-eight Muslims of the second generation of Islam, and that it was they who laid out the mosque's qibla.

Mind the dates, though: the mosque was founded at the end of the 8th century, and that account was written some four centuries later. King remarks that there's "as much fantasy as history" in those lines. It's a tradition about the founders, not a builder's record.

The interesting part comes next: almost two centuries after the founding, someone wanted to put the founders right.

Why wasn't it corrected? The astronomers versus the faqih

By the middle of the 10th century the mosque had grown too small. The chronicler Ibn Idari says the crush of worshippers was so bad that several of them nearly died, and that this is what made the caliph al-Hakam II decide to enlarge it.

Around the year 962, as the enlargement got under way, the caliph asked whether the time had come to correct the qibla. His court astronomers thought it had: the wall ought to be swung round to the east, the way his father had aligned the mosque at Medina Azahara. Against them, Abu Ibrahim, a faqih, a scholar of Islamic law, argued the opposite: they should follow the people who had founded it, back in the days of the conquest. The caliph sided with the faqih, and the qibla stayed where it was.

There's another version, recorded in the 15th century by al-Wansharisi: the caliph gave up because the people were scandalised at the idea of breaking with the practice of their forebears. In the first, a scholar's authority carries the day; in the second, people's custom does.

A footnote: not every translation agrees on what the astronomers wanted. The English translation of al-Maqqari published in 1840 says some of them preferred the south, as at Medina Azahara. The recent studies by Susana Calvo Capilla and by King read it as turning the wall towards the east, and we follow them here.

A wall that moved without turning

The mosque was enlarged several times, and with each extension the qibla wall moved. Abd al-Rahman II added eight aisles to the south, knocked down the first wall and built another one further on, with a mihrab that jutted outwards on a rectangular plan. A chronicler says the enlargement ran "from the pillars between the columns" to the new qibla, and a row of pillars inside is usually said to mark where that first wall stood. That's the usual reading, not something we've been able to confirm.

Then came al-Hakam II's extension, the one with the debate. And later Almanzor's, which grew eastwards because the caliph's palace lay to the west; with it, the mihrab was no longer in the middle of the wall.

But through all that growth, nobody touched the direction. The orientation defended in 962 is the same one King measures in the building.

Fact or legend?

  • Measured fact: the building is oriented at about 60° south of east; the qibla worked out for Córdoba today, at about 10° (figures by David A. King).
  • Widespread mistake: that the mosque faces Damascus, or simply south.
  • Documented match: its orientation is that of the Roman street grid of Corduba, aligned with the solstice sun, and it turns up in other Andalusi and North African mosques.
  • Proposed explanation, not proven: a wall parallel to the north-west wall of the Kaaba, the one some medieval schemes assigned to al-Andalus, laid out using the solstice sun (King). No medieval text describes the method.
  • Late tradition: the twenty-eight Muslims of the second generation who are said to have laid out the qibla.
  • Later chronicle: al-Hakam II's consultation around 962, with two versions of why the qibla wasn't corrected.

How to see it when you're inside

Walk along one of the aisles, away from the courtyard, and you'll have the direction of prayer under your feet: the founders' direction, defended almost two centuries later in front of a caliph. And if you come across a row of pillars among the columns, at the end of the oldest part, you're where the first qibla wall is usually placed.

Where to hear it

Podtour tells this story in "The qibla wall that does not face Mecca", one of the stories in the interior section of Inside the Mosque-Cathedral. That's twenty stories grouped by area, from the courtyard to the tower, which you can listen to in any order you like.

Outside, Córdoba's free route, The Mezquita and the Jewish Quarter, takes you round the monument's surroundings and the Jewish Quarter in eleven stops. And if you're planning your trip, our Córdoba guide has the practical side covered.

Further reading

Explore with Podtour

Where to hear this story

Keep exploring

Plan your time in Córdoba

Explore CórdobaTravel guide

Your first city,
on Podtour.

Join the waitlist. When we launch, your chosen city is yours to explore.

iOSAndroidComing soon
A little welcome gift

Your first city,
on Podtour.

Join the waitlist and get one whole city free when Podtour launches. You choose where.

No card. No commitment. Just a good walk.

Podtour manages your launch request with your consent. You can withdraw it and exercise your rights as explained in our privacy policy. Privacy details.

One city per person. All its Podtour routes in Spanish and English. Available at launch. Offer details.