Tarifa is very close to the ocean. It's basically about 2881 meters from the ocean depending on where you measure to the exact coastline.
If you're driving to a town near the beach or coastline, you could try Valdevaqueros.
How far is Austin from the ocean
How far is Green Bay from the ocean
How far is Sioux Falls from the ocean
How far is Myrtle Beach from the ocean
How far is Saint Augustine from the ocean
How far is Las Cruces from the ocean
How far is Baltimore from the ocean
How far is Roanoke from the ocean
How far is San Antonio from the ocean
How far is Monterosso al Mare from the ocean