
4 min read
Morocco's history of astronomy and alchemy
Fez and Marrakech were once real centres of scholarship, astronomy included, within the wider Islamic world.
Fez's Al-Qarawiyyin, founded in 859 AD and recognised by UNESCO and Guinness World Records as the oldest existing, continually operating degree-granting institution in the world, was a genuine centre of scholarship across theology, law, mathematics, and astronomy, part of the wider network of learning connecting Morocco to Andalusia and the broader Islamic world during the medieval period.
Marrakech has its own claim through Ibn al-Banna al-Marrakushi, a 13th-century mathematician and astronomer born in the city. His work on arithmetic and astronomical tables belonged to a real tradition of applied astronomy across the Islamic world, driven largely by practical needs. Calculating prayer times and the direction of Mecca (qibla) required genuine astronomical and mathematical skill, and mosque orientation across Morocco still reflects that work.
Alchemy is a harder claim to pin specifically to Morocco. It was a real strand of scholarship across the medieval Islamic world more broadly, with figures like the earlier Jabir ibn Hayyan associated with its foundations, and Morocco's scholarly centres connected to that wider tradition through Andalusia. That's different from being an independent, separately documented alchemical centre in its own right, and it's worth knowing the difference before repeating a stronger claim than the history actually supports.
None of this is heavily signposted for visitors today; there's no "astronomy museum" built around it. But the Al-Qarawiyyin's library (partially viewable) and the sheer density of historic madrasas in Fez are about as close as you'll get to seeing this history in person instead of just reading about it.
Planning around Fez? Read the Fez destination guide or see 6-Day Sahara Desert Tour: Marrakech to Fez, a sample itinerary that includes it.
A few common questions
Ready to see this in person?
6-Day Sahara Desert Tour: Marrakech to Fez
A private route over the Atlas passes and down into the Sahara, with two nights to actually sit still in the dunes instead of rushing through them. We end in Fez instead of backtracking to Marrakech, so every day moves forward.
More from the blog

Private or group: what actually changes on the road
The difference isn't comfort so much as control over the day.
By Omar Hafidi
Read article
A first-timer's route through the Marrakech medina
Where to start when every street looks the same as the last.
By Anouar
Read article
When to go: Morocco by season, region by region
The country is large enough that 'best time to visit' depends on where you're headed.
By Omar Hafidi
Read articleTours that include this

4-Day Sahara Desert Tour from Fez
The most direct route to Erg Chebbi and back, for travellers based in Fez with four days rather than a week. The Middle Atlas cedar forests and Ziz Valley palmeries do a lot of the scenic work on the way down.

4-Day Imperial Cities Tour from Fez
The shortest way to see three imperial cities and the best Roman ruins in the country, without touching the desert or the coast further south: a good add-on to a Fez-based trip rather than a trip on its own.

4-Day Middle Atlas Tour from Fez: Ifrane and Azrou
A short trip into the cedar forests and mountain air of the Middle Atlas: Ifrane's alpine-style streets, Barbary macaques near Azrou, and a slower pace than the medina, an hour and a half from Fez.
