Mdina is very close to the ocean. It's basically about 3582 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 Rabat (Malta).
How far is Telluride from the ocean
How far is El Paso from the ocean
How far is Kailua from the ocean
How far is Winter Park, FL from the ocean
How far is Kalamazoo from the ocean
How far is Fairbanks from the ocean
How far is Gainesville from the ocean
How far is Columbus from the ocean
How far is Hanalei from the ocean
How far is Vancouver from the ocean