Cycle through which energy and essential substances are transferred among species and between the biotic and abiotic segments of the environment.