It seems that the processes that determine the creation of sandbars are under the control of waves and wind. Storm waves breaking in relatively deep water offshore dig a trough in the sand and cause the deposition of a low submarine bar near to the shore and parallel to it. When this continues to raise the bar above water level, a dune is formed that is immediately affected by the wind. An angle of between five and ten degrees on the ocean floor is associated with bar and subsequent dune formation. Isolated bars emerge, then coalesce as a continuous dune. The area of water between dune and shore becomes a shallow lagoon or bay.