Spain is bordered by the Atlantic Ocean to the west and north, and the Mediterranean Sea to the east.