Beaches form in sheltered environments like bays through the processes of deposition. Spits are formed when longshore drift causes sediment to accumulate into narrow extensions of land along a shoreline. Bars are similar to spits but connect two areas of mainland, while tombolos connect an island to the mainland through a double-barred spit formation.