Write the next sentence.

The wall was set up just outside of the castle gate to defend it from attack, as the
wall would be strong against the battering ram.