Plants have two main methods of nutrition - photosynthesis and absorption. During photosynthesis, plants use sunlight, carbon dioxide, and water to produce oxygen and energy in the form of glucose. Plants also absorb nutrients through their roots from the soil, such as nitrogen, phosphorus, and potassium, which they need for growth. These two processes of photosynthesis and absorption allow plants to obtain the nutrients and energy they require to grow and thrive.