In the process of photosynthesis, plants need the suns energy, water to make food for themselves in the form of ATP, which is packages of energy. Carbon coming into the plants along with water make those ATP into a bigger molecule, which is know as glucose.
Photosynthesis has an affect on the carbon cycle because it reduces the amount of CO2 in the air and redirects it into sugars which feeds animals as well as humans.