Andalusia is in the south of the Iberian peninsula , immediately south of the autonomous communities of Extremadura and Castile-La Mancha ; west of the autonomous community of Murcia and the Mediterranean Sea ; east of Portugal and the Atlantic Ocean ; and north of the Mediterranean Sea and the Strait of Gibraltar .
Andalusia is in the south of the Iberian peninsula , just to the south of the autonomous communities of Extremadura and Castile-La Mancha ; west of the autonomous community of Murcia and the Mediterranean Sea ; east of Portugal and the Atlantic Ocean ; and north of the Mediterranean Sea and the Strait of Gibraltar .