All solid and liquid matter was generated by Chemistry before the Sun was formed.

The metal elements combined with oxygen like frost is generated and then burns when the mass is sufficient to support combustion.