Transition from a floating pelagic larval stage to a substrate-associated juvenile or adult existence.