In some waterfront areas, driftwood is a major nuisance. However, the driftwood provides shelter and food for birds, fish and other aquatic species as it floats in the ocean. Gribbles, shipworms and bacteria decompose the wood and gradually turn it into nutrients that are reintroduced to the food web. Sometimes, the partially decomposed wood washes ashore, where it also shelters birds, plants, and other species. Driftwood can become the foundation for sand dunes.