@barnee
Most importantly is, that Gibraltar is constantly threatened by Axis invasion from mainland Spain.
This gives the Axis control over the passage through Gibraltar by surface ships.
Also, by capturing Gibraltar, the Axis prevents the Allies from using an important Naval Base that can threaten Western Germany by a sea borne invasion.