Answer
Ferdinand IV of Castile's biggest failure was his inability to conquer Algeciras. Algeciras was a strategically important city that controlled access to the Mediterranean Sea. Ferdinand tried to conquer the city several times, but he was never successful. The city's defenses were too strong and the Castilian army was too small.