It is built in a square, and the only way in is through the gate in the brick defensive wall.
The defensive wall is made of brick.