Why Did Castles and Forts Have Moats?
A moat is a wide ditch around a castle or fort. It kept attackers back from the walls and slowed them down, and the dirt dug out could help build the walls. Castillo de San Marcos in Florida still has one.

A castle’s walls were its main defense. A moat added one more barrier: a wide ditch between anyone approaching and the bottom of the wall.
What a moat does
Dictionaries describe a castle as a strong building, usually from the Middle Ages, with thick walls, towers, and often a moat. Some moats were filled with water and some were dry ditches. Either way, the idea was the same: make the ground right outside the wall hard to reach.
The National Park Service calls a fort’s ditch an impediment, meaning something that gets in the way. Think about what that means: an attacker who has to scramble down into a ditch and back up the other side is slower, and stays in view of the defenders longer.
Ditches did double duty
Digging a ditch makes a big pile of dirt, and builders found a use for it. When the U.S. Army built a new Fort Union in New Mexico during the Civil War, it surrounded the fort with a ditch. The National Park Service explains that the ditch was another obstacle for attackers, and the dirt dug out of it was used to build the fort’s walls. One shovel load did two jobs.
A real fort with a moat
You can still walk around a moat at Castillo de San Marcos in St. Augustine, Florida. Spain built the fort in the 1600s. NPS notes that it has thick walls, battlements, towers, and a moat, so it meets the dictionary definition of a castle, even though people often call it a fort.
The Castillo also has pointed corners called bastions, which let defenders watch along the walls. You can read more about that in why some forts had star shapes.
Walls made of seashells
The Castillo’s walls have a surprise of their own. They are built from coquina, a rare kind of limestone made of broken seashells. It is one of only two forts in the world made of this stone.
Coquina is light and full of holes, so at first it sounds like a terrible choice for a fort. But those holes turned out to help. The stone contains millions of tiny air pockets, which let it compress a little. When cannonballs hit the thick walls, the stone absorbed the blows or made them glance away instead of shattering. NPS calls coquina the stone that saved Spanish Florida.
Keeping people safe
At one point during a siege, the Castillo sheltered more than 1,500 people for 51 days. The moat, the bastions, and the springy shell-stone walls worked together to keep them protected.
Moats may look like decoration in old pictures, but they were serious defense. They kept attackers at a distance, got in their way, and gave builders extra material for strong walls.
Try it at home: Squishy wall test
You need:
- A dry kitchen sponge
- A piece of stiff cardboard
- A small soft ball or a balled-up sock
- Prop the sponge and the cardboard up against a wall side by side.
- Gently toss the soft ball at the cardboard. Watch how it bounces off or bends the cardboard.
- Toss it at the sponge the same way. What happens to the ball's bounce?
- The sponge is full of air pockets, a little like coquina stone. It squishes and soaks up some of the hit instead of cracking.
Grown-up check: Use only soft balls or socks, toss gently, and keep away from windows and people.
Fun facts
- Castillo de San Marcos is one of only two forts in the world built from coquina, a stone made of tiny seashells.
- During one siege, Castillo de San Marcos sheltered more than 1,500 people for 51 days.
Key words
- moat
- A wide ditch dug around a castle or fort, sometimes filled with water.
- coquina
- A soft, rare kind of limestone made from bits of seashells.
- siege
- When an army surrounds a place and tries to force the people inside to give up.
Quick quiz
What did you think?
Tap one. We only count the button, never who pressed it: no names, no accounts, no cookies.
Thanks! Your reaction was counted.
Still have a question? Kids: ask a grown-up to email our editors for you. Found a mistake? Send a correction.
Sources
Pages our editors opened and checked for this answer.
- Architecture & Construction - Castillo de San Marcos National Monument (U.S. National Park Service) — retrieved November 23, 2026
- Bastions - Castillo de San Marcos National Monument (U.S. National Park Service) — retrieved November 23, 2026
- star fort - Fort Union National Monument (U.S. National Park Service) — retrieved November 23, 2026
Related questions
-
Why Did Some Forts Have Star Shapes?Why were forts like Fort McHenry and Castillo de San Marcos shaped like stars? How bastions, ditches and cannons shaped the star fort, for teens.
-
Why Was the Great Wall of China Built?Why did China build the Great Wall, and can you really see it from space? Its purpose, long history, and the famous myth, explained for kids.
-
Why Did Soldiers Wear Armor?Why did knights and soldiers wear armor, and was it really too heavy to move in? Myths and facts about medieval and Renaissance armor for kids.