The fortress was constructed there because of its position of great strategic significance due to its proximity to the border between Spain and Portugal which lies 0.4 miles to the west of the fortress.