I have said this before, so, Coastal dunes form when the wet sand is deposited along the coast and dries out, and is blown by wind along the beach! The Dunes form where the beach is wide enough to allow enough of wind-blown sand, and where prevailing onshore winds tend to blow a sand island! I hope this helped!