Marrakech is about 144 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Safi.
How far is Burlington, VT from the ocean
How far is Bodega from the ocean
How far is San Diego from the ocean
How far is Marina Del Rey from the ocean
How far is Kissimmee from the ocean
How far is Kingman from the ocean
How far is Saint Pete Beach from the ocean
How far is Tahoe City from the ocean
How far is Cincinnati from the ocean
How far is Kos from the ocean