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 Hartford from the ocean
How far is Cannon Beach from the ocean
How far is Mystic from the ocean
How far is Pacific Grove from the ocean
How far is Pensacola from the ocean
How far is Toledo, OH from the ocean
How far is Coeur d'Alene from the ocean
How far is Santa Rosa, CA from the ocean
How far is Carmel from the ocean
How far is Moscow from the ocean