An oxidizing gas such as air or oxygen can be provided to an underground combustion or retorting zone so as to combust a portion of the combustible material contained therein and free hydrocarbon or thereby form materials which are suitable for energyrecovery.