Annelids, like many other invertebrate animals, replace lost body parts in a process called regeneration. However, the ability to regenerate lost segments is present in some groups and not others; for example, leeches do not regenerate lost segments. Anterior and posterior regeneration involves the formation of a bud containing stem cells that differentiate into the new head or tail segments. Annelid regeneration also involves remodelling of surviving body fragments. The ability of annelids to regenerate tail segments appears to be nearly universal among species capable of regeneration. The ability to regenerate head segments, although common, is not universal and can depend on the number of segments lost. The absence and presence of regeneration across annelid groups, including closely related species, suggests that regeneration ability may be an ancient trait that has been lost in some species during annelid evolution.