Answer:The Earth formed approximately 4.54 billion years ago through a process called accretion, starting from a solar nebula. This nebula, a disk of gas and dust left over from the Sun's formation, gradually coalesced into planetesimals, which then collided and merged to form larger bodies, including Earth. This process involved intense heat, melting the early Earth, and eventually leading to the formation of its core, mantle, and crust.