How do plants get the energy it needs to carry out activity?

Plants obtain energy from the sun.