Longshore drift transports sediment down the beach, depositing it when there is a sudden change in shape of the coastline. This forms a spit. Sediment continues to be transported past the bend, causing more to be deposited, increasing the length of the spit. The sheltered area of the spit is protected from the waves, causing a loss of energy in the waves. This can sometimes form salt marshes and mudflats behind the spit, attracting lots of vegetation and wildlife. Strong winds and waves also cause the end of the spit to curve, forming a recurved end.