Valletta is very close to the ocean. It's basically about 1481 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 Gzira.
How far is Girdwood from the ocean
How far is Greenville, SC from the ocean
How far is Tacoma from the ocean
How far is Culver City from the ocean
How far is San Antonio from the ocean
How far is Hartford from the ocean
How far is Salem, MA from the ocean
How far is Lahaina from the ocean
How far is Newport Beach from the ocean
How far is Koh Phi Phi from the ocean