During the formation of planetary systems, dynamical friction between the protoplanet and the protoplanetary disk causes energy to be transferred from the protoplanet to the disk. This results in the inward migration of the protoplanet.