In a word, sugar.
This tree in my yard, well across my line in my neighbors yard was felled about 10+ years ago roughly. Ramial wood goes first. The white mold phase. Move to other fungi. Everybody gets in the chow line, each appreciating the food given by the previous others. The great white decomposers of the world. The degradation of lignin which holds a special place in life and the cycles that support it, unlike a pine.
But I digress.
Ultimately it's left carbon and oxygen and as you know those are elements. It's that you may not appreciate how damned tough it is to break down an element, or more specifically break elements apart to give their energy back ala Einstein light. These in the breakdown stage are molecular bonds breaking down, not the elements nor the atoms of which they consist That would come much later. The terra preta soils of the Amazon educate me on the long term effects of carbon in soil over thousands of years.
CO2 goes back to whence it came. Slowly, the sugars and foodstuffs get eaten first.
Water adds hydrogen and oxygen to the process. Oxygen, Carbon and Hydrogen meet in the river and carry on as well, to your question. It's basically a form of the processes of oxidation of the components of sugar C12-H22-O11.
Carbon (C), Hydrogen (H), Oxygen (O): Sourced from air and water; they make up the bulk of plant dry weight.
Sugars.
Nitrogen (N): Drives green leaf growth and stems.
Phosphorus (P): Builds strong roots, flowers, and fruits.
Potassium (K): Regulates water and boosts disease resistance.
NPK see fertilizers.
Calcium (Ca): Forms strong cell walls. Magnesium (Mg): Acts as the core molecule in chlorophyll.
Sulfur (S): Aids in making proteins and vitamins.
Minor Nutrients:
Iron (Fe): Helps form chlorophyll.
Manganese (Mn): Assists photosynthesis and enzyme activation.
Boron (B): Builds cell walls and helps with reproduction.
Zinc (Zn): Controls growth hormones.
Copper (Cu): Aids photosynthesis and flavor.
Molybdenum (Mo): Converts nitrates for plant use.
Chlorine (Cl): Regulates osmosis and plant health.
Nickel (Ni): Supports seed germination and nitrogen metabolism.
The degradation this thread is about starts at the top. And eventually we call it compost and put the materials back out as they contain the residual elements and macro and micro nutrients from the parent plant.