They then combine the carbon obtained with hydrogen and other materials they get from the soiil they grow in to build compounds that make up the structure of the plant most importantly for what you are talking about the wod that makes up tree trunks, stems, branchees,e tc.