12. To secure a direct connection between the castle and the sea, the Portuguese built a double curtain wall (couraça), another technical solution of Islamic origin. Between these two walls they could receive safe aid from the fleets, or flee if besieged.