The impressive castle dominates the crashing waves of the Atlantic on the rocky waterfront. The fortress was built to enforce Portuguese authority, house the town governor and protect the port. The ramp in the courtyard leads to the southwest bastion with great views. Prisoners were kept in the basement of the prison tower , right of the entrance, before being killed or shipped as slaves. You can climb to the top for views across the medina.