The fortress, which includes a primary bulwark and encircled by 4 kilometers line of walls with four hundred pieces of artillery, used to protected shipping that returned from the East Indies (laden with gold and silver).