Why WondersBig questions, clear answers.

Why Did Castles and Forts Have Moats?

Military History Level 2 · Investigator Ages 9–12 Try it at home

Short answer

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 round Chinese print showing Xu Gate in the city wall of Suzhou beside the city moat
Image: Unknown artist; The Cleveland Museum of Art · CC0 (Open Access)

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
  1. Prop the sponge and the cardboard up against a wall side by side.
  2. Gently toss the soft ball at the cardboard. Watch how it bounces off or bends the cardboard.
  3. Toss it at the sponge the same way. What happens to the ball's bounce?
  4. 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.

See the full glossary

Quick quiz

1. What is a moat?
Show the answer

A wide ditch around a fort or castle. A moat is a ditch around the walls that keeps attackers back.

2. At Fort Union, what did builders do with the dirt from the ditch?
Show the answer

Used it to build the fort walls. NPS says the excavated dirt became the fort's walls.

3. Why did Castillo de San Marcos' coquina walls work so well?
Show the answer

They squished a little and absorbed cannonballs. Tiny air pockets let the stone compress, so it absorbed or deflected shots.

What did you think?

Tap one. We only count the button, never who pressed it: no names, no accounts, no cookies.

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.

  1. Architecture & Construction - Castillo de San Marcos National Monument (U.S. National Park Service) — retrieved November 23, 2026
  2. Bastions - Castillo de San Marcos National Monument (U.S. National Park Service) — retrieved November 23, 2026
  3. star fort - Fort Union National Monument (U.S. National Park Service) — retrieved November 23, 2026

Related questions

  • A 17th-century landscape drawing with a fortification between the Italian towns of Marino and Frascati
    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.

    Military History Expert Ages 13+ Try it

  • Photo from the International Space Station showing land in northern China where a section of the Great Wall runs
    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.

    Military History Investigator Ages 9–12

  • A full suit of steel field armor in Maximilian style from about 1510 to 1515
    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.

    Military History Explorer Ages 6–8