How did earth form as part of the solar system

Earth formed as part of the solar system through a process known as accretion. This process involved the gradual accumulation of matter in the form of dust and gas that was drawn together by gravity. Over time, this matter coalesced to form the planets, moons, and other objects that make up the solar system.