structural:expansion, stylistic:style_transfer, quality:correction
Ecology

Polychaetes are predominantly marine, but many species also live in freshwater, and a few in terrestrial environments. They are extremely variable in both form and lifestyle, and include a few taxa that swim among the plankton or above the abyssal plain. Most burrow or build tubes in the sediment, and some live as commensals. A few species, roughly 80 (less than 0.5% of species), are parasitic. These include both ectoparasites and endoparasites. Ectoparasitic polychaetes feed on skin, blood, and other secretions, and some are adapted to bore through hard, usually calcerous surfaces, such as the shells of mollusks. These "boring" polychaetes may be parasitic, but may be opportunistic or even obligate symbionts (commensals).

The mobile forms (Errantia) tend to have well-developed sense organs and jaws, while the stationary forms (Sedentaria) lack them, but may have specialized gills or tentacles used for respiration and deposit or filter feeding, e.g., fanworms.Underwater polychaetes have eversible mouthparts used to capture prey. A few groups have evolved to live in terrestrial environments, like Namanereidinae with many terrestrial species, but are restricted to humid areas. Some have even evolved cutaneous invaginations for aerial gas exchange.