The process by which organisms obtain energy (in the form of food) for growth, maintenance, and repair. There are two main types of nutrition: heterotrophic nutrition, employed by animals, fungi, and certain bacteria and archaea; and autotrophic nutrition, found in most plants, bacteria, and archaea. Much less common are mixotrophic organisms, which combine heterotrophic and autotrophic nutrition.