Ah, one of the culprits in filling our atmosphere with corrosive oxygen.
Not fungi! Nope, they're heterotrophs, like animals! That means that they do not photosynthesize, and must instead derive their metabolic energy from other sources, either as symbionts or parasites.
They consume oxygen, and then emit the plant-food carbon dioxide.
Regards,