Impact and pressure of material by gravity and this compression produces components crashing into one another and along these lines generation of tremendous measure of energy.
The second procedure that was likewise in charge of the generation of heat during the formation of the earth is the crash of earth with meteors and space rocks which was exceptionally visit during earth early history and the dynamic vitality of these bodies gets changed over into the heat energy during the impact.