Spits and bars are depositional coastal landforms formed by processes such as longshore drift. A spit is a depositional landform that extends from the shore out to sea, often curved in shape due to opposing winds and currents. A bar occurs where a spit grows across a bay, enclosing the bay to form a lagoon, or forms offshore due to breaking waves. Longshore drift transports sediment along the coast and causes deposition of material in certain areas, gradually building up spits and bars.