They use phototsythesis. Cuz, the sun preserves energy then gives it to the plant and helps the plant grow! Photo means light and synthesis means building in Latin.
Plants need carbon dioxide in order to perform photosynthesis....they also do need to do this in an aerobic environment (in air, which does contain oxygen).