A stage in an animal's life cycle when it ceases being free swimming or motile, and becomes attached to a substrate.