Write the next sentence.

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