As planetesimals grow in size, gravity becomes the dominant force. The gravitational attraction of these bodies causes them to collide and merge, forming larger and more massive objects called protoplanets. This process, known as accretion, leads to the formation of planetary embryos.