Heri es-Swani is a vast earthenware and mudbrick granary and stable complex on the southern edge of Meknes, Morocco, built under Sultan Moulay Ismail in the early 1700s to store grain for his army and horses. It sits just outside the medina walls, about a 10-minute walk from Place El Hedim. The structure travellers now walk through is largely the work of Moulay Ismail's reign (1672–1727), not a Roman-era ruin or an Almohad palace, and that distinction decides how you read the place.

What Heri es-Swani Actually Is, in Plain Terms

Strip away the tour-brochure romance and Heri es-Swani is a working agricultural and military facility: a grain silo, a stable block, and a water-management system built as one compound. "Heri" in Moroccan Arabic refers to the enclosed compound; "es-Swani" is usually rendered as "of the warehouses" or "of the silos." The name tells you the function before you step inside.

The grain was held in rows of vaulted chambers, each topped with a small domed cap. The rooms are built of rammed earth and mudbrick with pitched brick vaults, arranged in long parallel aisles. Ventilation holes in the roof caps kept stored seed grain from heating and moulding; the thick walls buffered Meknes's hot summers and cold winters. A working granary needs air moving through it, and the domed caps are the engineering that supplies it.

Two parts of the complex are usually walked together. The granary section holds the silo chambers and the courtyard used for loading. The stable section to the side was built for Moulay Ismail's horses, with a separate water supply. Visitors through the years have described the layout shifting as restoration work proceeds — the granary alone is the part most consistently open.

Some signage and guidebooks present the whole complex as designed to hold "12,000 horses and 20,000 quintals of grain." Those are the figures most often repeated, and they may derive from the court chronicler Ahmed ibn Khalid al-Nasiri's history of Meknes. Treat them as historical claims from the era rather than modern engineering assessments — measuring 12,000 stalls against the visible stable footprint does not add up to a comfortable number. The honest reading is that the complex was enormous for its era and the surviving fabric is roughly a third of what stood.

The Scale and Layout You'll Walk Through

The compound is set in a large walled enclosure, roughly 200 metres by 200 metres by some estimates, though no single official figure is nailed down and measurement differs depending on which perimeter you count. The visitor route enters near the central courtyard and works through the vaulted aisles, which fan out in parallel lines. If you've seen the Roman horrea at Ostia or Volubilis, the shape will feel familiar; the vaulting is unmistakably Maghrebi.

The main stable block in the preserved section is about 100 metres long by 20 metres wide, divided by rows of arches into individual stall bays. That's the shape of a cavalry depot, not a palace. A few of the stall bays still have their stone mangers and rear tie rings. The brick is local, laid in courses; the arches are unplastered and worn.

In the granary section, the loading courtyard at the centre is where grain arrived for distribution. Smaller storage chambers ring the courtyard, and the biggest of them are deep enough that you step down through a narrow doorway into a cool room with broken light from the ventilation caps. The floor is packed earth over stone; the doorways are low and the lintels repaired in places.

Most of the destruction of this site is attributed to the 1755 Lisbon earthquake, which levelled a broad swath of northern Morocco. Moulay Ismail died in 1727, so the compound had less than 30 years at full function before the quake. Later rulers moved the imperial capital to Rabat and Meknes lost the role that supported a royal granary. The complex was abandoned, quarried for brick, and stayed a ruin until the Moroccan government began restoration work in the 1990s. Signs on-site date the latest restoration campaigns to the 2000s and 2010s; confirm current restoration status with the Ministry of Culture when you arrive, as sections close without notice.

How Meknes's Granary Fit an Imperial Supply Chain

Moulay Ismail moved the capital of Morocco to Meknes in 1672 and spent the next several decades building it around his military needs. The army that protected him needed daily bread for tens of thousands of men. Feeding that army meant two things: a regular purchase of grain from the surrounding plains — one of the Saïss and Zerhoun region's strengths — and a place to hold it back from the annual harvest so spring shortages could be bridged.

Heri es-Swani is that storage capstone. Grain was brought in from the countryside, likely by mule and camel caravan, processed at nearby mills, and stocked here in sealed dry chambers for the dry season and the campaigning season. The stable block is co-located because the horses that pulled the grain and carried the cavalry had to eat from the same stock. The granary and stable were not separate amenities.

What the site also did was anchor a larger hydraulic program. Moulay Ismail's engineers ran an aqueduct-fed system from the Oued Boufekrane and springs on the slopes above the city toward the palace precinct. That system fed fountains, gardens, and the baths of the royal quarter, with branches into the granary and stable area. Some of that water infrastructure still functions in the medina; the remains around Heri es-Swani are visible as channels and basins.

The site also carries a folk memory of being designed for long sieges. That part is less verifiable than the daily supply function. A practical reading is that the complex served both uses; the surplus above annual army needs provided a buffer against drought and poor harvest. The harvest failure of 1720s Morocco is part of why the city's building programme strained the countryside it drew from. The granary is, among other things, a monument to the assumption that the imperial center could pull food from the periphery indefinitely.

Reading the Vaults: Architecture You Can Actually See

The physics of the building are the interesting part. A granary storeroom cannot be damp. If the grain gets warm and humid, the seeds germinate or rot and the stock is lost. Two design decisions solve that. First, the loading of the vaults: pitched brick vaulting in these long chambers sheds any moisture that condenses on the underside and drains it down the curve; flat timber roofs in this climate would gather water and rot. Second, the roof caps with ventilation openings — whether or not a given cap still has a working hole — were the air exchange. Hot air rose out, cool air entered below.

The thick walls (roughly 60–90 cm where they're intact) do two jobs. They hold the interior temperature steady across the day-night swing, and they carry the roof load without a timber frame. Mudbrick and rammed earth are poor in tension but strong in compression, so an arch or vault route lets the builders use a cheap local material without importing stone. The vaults also make the narrow storage rooms structurally efficient: the thrust goes down and out into the walls.

Look at the wall junctions in the stable section and you'll see patched shrinkage cracks from the mud used in repair mortar — the building's own history of movement. The on-site restoration notices in the early 2010s list lime-based repair mortars rather than cement, a deliberate choice to stop trapped moisture from rotting the earthen fabric. That's the kind of detail worth pausing on. Cement repairs in Moroccan earth architecture have a long record of accelerating the damage they were meant to fix, and the conservation team has since gone back to compatible lime plasters.

Practical Visit Logistics, Times, and Costs

Official ticket prices and opening-hours vary by source and season, and I am not going to put a number into print I cannot verify against the current site administration. The safe move is to confirm on the Ministry of Culture's official page or with the ticket office at the entrance on the day; in recent years tickets have been modest by international standards, and a combined Meknes monuments ticket has existed at various points.

Plan arrival for the morning if you can. The interior vaults run hot by early afternoon in summer and the light through the roof caps falls best mid-morning. The compound has no elevator and limited shade, so a hat and water matter. Wheelchair access is limited to the main courtyard — the aisles have stepped thresholds at the doors and packed dirt floors. Visitors with mobility limitations should call the site office ahead to ask what is accessible that week.

The walk from Place El Hedim to the entrance takes about 10 minutes if you go out by Bab Mansour and follow the perimeter wall. Taxis in Meknes are common and the ride is short; agree the price first. There is no café inside the compound, and the nearest services are back in the medina. The site is a 10-minute walk to the Bab Mansour gate and the royal granary is sometimes recommended in the same half-day as the medina, though that is tight.

When the Granary Failed: The 1755 Earthquake and Its Aftermath

The Lisbon earthquake of All Saints' Day, 1755, and its aftershocks hit much of northern Morocco. The Meknes area was seriously damaged, and the granary and stable complex lost much of its roof and several vault spans. Historians disagree on the precise extent of damage to this specific compound; the broad consensus is that it accelerated the site's decline rather than caused it from zero. A structure with vaulted earth roofs that has stood less than thirty years can come down quickly in strong shaking.

Post-1755, the capital's slide had already begun. Moulay Ismail's successors spent less and spent elsewhere. The granary's role as the anchor of a military supply chain required an active imperial presence in Meknes. Once that role was gone, the complex became a building that nobody needed to maintain. Grain storage needed a working buyer, a working transport network, and a working mill; all three dried up with the capital.

Because the site was abandoned, local people quarried it. That is the common fate of ruins in crowded cities, and while the compound's official status as a monument arrived in the twentieth century, the recovery of the fabric is far from complete. Modern tourism is the current funding source, and the tension between visitor access and conservation is real — more foot traffic across packed-earth floors means more dust, and every tour group that touches the arches accelerates slow wear.

Stocking a Working Granary: What the Numbers Would Have Required

A rough arithmetic exercise shows how big the imperial stock really was. Egyptian and Roman workshops treated seed wheat as roughly 0.75–0.8 kg per litre of volume. A long vaulted chamber of 15 metres by 4 metres with a 4-metre stack height (typical for these rooms) holds maybe 240 cubic metres of grain, about 170 tonnes. A few dozen chambers of this size gives you thousands of tonnes of wheat. That's a lot of bread; reserving a portion of it for year-on-year buffer is exactly what a state granary is for.

The horse side of the ledger helps calibrate the army. A working cavalry horse eats from about 5 to 8 kg of grain per day when grain-fed, in addition to forage. A stable of several thousand horses therefore consumed tonnes per day, and any length of campaign needed a huge reserve. The "12,000 horses" figure in tourism material implies consumption in the hundreds of tonnes per month. Whether or not the number is exact, the order of magnitude explains the size of the compound.

The point of the arithmetic is not to claim precision. It is to make the intuitive leap: the vaulted rooms that look like empty cells to a modern tourist were the packaging around a specific daily ration. Heri es-Swani is one of the few surviving buildings in Morocco where that scale of state logistics is still visible in the walls. The interior air smells of dry earth and old dust; the roof caps cut the light into small beams that fall on the floor in a way that emphasizes the room's depth. On a quiet morning the only sound inside is footsteps on packed earth and the faint echo off the vaults.

Pacing Your Visit and What You'll Actually Learn

Give this site 45 minutes to an hour, and more if you want to read the on-site panels. The most informative sequence is: enter, read the site plan near the ticket gate, walk the courtyard first to see the loading layout, then take the granary aisles, then the stable block, then look back at the structures from the wall. The courtyard first helps because it gives you a mental map of what the aisles fed into. Skip the crowded late morning if you can; a lot of tour groups pass through around midday, and the interior architecture is better read with fewer people.

The single best thing to look for is a roof cap with a central hole. Those ventilation openings are the actual mechanism; whether a particular cap is open or closed tells you where someone has restored and where the fabric is still original. Ask a guide, if you take one, what the cap hole is for. That question sorts out the guides who know the site from the ones doing a script. The site office sells no book; the good account to read before you go is still Al-Nasiri's history of Meknes in translation, or a modern architectural survey of Moulay Ismail's building programme — ask at the Meknes medina bookshops for the local histories.

There is a real interpretive gap. Heri es-Swani has no interpretive centre, and the panels are limited in English. The risk is that a visitor walks through and reads it as "old building, horses slept here." The payoff if you read it correctly is that this is the imperial supply chain on the ground: the size of the granary is the size of the army the Sultan expected to feed. If you are a repeat visitor to Morocco's madrasas and palaces, this site gives something those don't: a working picture of how the state moved food and water across a militarily significant geography.

FAQ

Was Heri es-Swani really built for 12,000 horses?

The 12,000-horse figure appears in tourism materials and older guidebooks; the source is often a historical court narrative rather than a modern survey. Measuring the surviving stable footprint against the claim does not support the higher numbers comfortably. Treat it as a historical claim from the era, and ask the site office what the current archaeological survey actually documents.

Why is the granary credited to Moulay Ismail rather than an earlier dynasty?

Moulay Ismail (ruled 1672–1727) moved the imperial capital to Meknes and built the complex as part of the city's infrastructure programme. The vaulted silo design has older precedents in North African granaries, but the Meknes compound's fabric and plan match the 1700s build campaign, not the Almohad period. The attribution is conventional among architectural historians of the sultan's reign.

Did the 1755 Lisbon earthquake destroy the whole compound?

No, and the difference matters. The quake damaged vaults and roofs that were then left unrepaired, and the site declined further through abandonment and stone-robbing. Some accounts of a decimating single event should be treated cautiously; the site was already losing its military function before 1755, and the quake is best understood as an accelerant.

Can I see the stables without a guide?

You can visit independently; the entry ticket covers the main accessible areas, and signage exists in spots. The risk is that the English interpretation panels are thin, and the vaults are easy to under-read without context. A guide who knows the site is the fastest way to get the ventilation-cap and loading-courtyard details that make the visit land.

Is the granary in Meknes the same thing as the Almoravid "heri" granaries in other cities?

No, the word 'heri' appears in multiple Moroccan place names related to enclosed compounds or storehouses. Heri es-Swani is a specific 1700s complex tied to Moulay Ismail's capital. Granaries of the same name or similar function elsewhere, such as at Marrakech, belong to different rulers and different build campaigns. Confirm you mean the Meknes compound before buying tickets.

How long should I budget and does the ticket combine with Bab Mansour?

Budget 45–60 minutes for the main compound. Ticket bundling has varied over the years; the current ticket structure should be checked with the ticket office on arrival or the Ministry of Culture's official listings before you go, as combinations are not guaranteed year to year. Morning arrival gives the best light and smallest crowds.

What's the most useful thing to know before visiting on a hot day?

The interior vaults are dry and cool in the morning but trap heat by mid-afternoon, and the courtyard has almost no shade. Carry water, wear a hat, and plan to walk in early. The compound is packed-earth flooring, which means dust on your shoes in dry weather; not harmful, but worth a wipe before re-entering the medina.