Oxygen and some type of hydrocarbon are combined in an exothermic reaction.
The end products are various oxides and heat.
Not always a hydrocarbon. That’s a Class A or Class B fire. Class D fires are burning metals like Aluminum and Magnesium.