Answer
In 1309, Ferdinand IV of Castile attempted to conquer the Moorish city of Algeciras. The city was located on the Strait of Gibraltar, and its capture would have given Castile control of the strait and a direct route to North Africa. However, the Castilian army was defeated by the Moors, and Ferdinand was forced to withdraw.