The law of adoption was a ritual practiced in Latter Day Saint temples between 1846 and 1894 in which men who held the priesthood were sealed in a father–son relationship to other men who were not part of nor even distantly related to their immediate nuclear family.
Some younger men who were sealed by the law of adoption were called “sons” and took the surname of the older man, whom they called their “father”. In the law of adoption, "the sons were to give to the fathers the benefit of their labor while the fathers offered their children not only some measure of security but counsel and direction in the world as well." One sociological reason for the practice was because "[a]t this early stage in the church's history the membership was dominated by adult converts, whose new religious beliefs and westward migration with the Saints often estranged them from their birth families. Intra-church adoption in some measure compensated for this."
The first known use of the term "law of adoption" within Mormon doctrine was by Parley P. Pratt; however, the doctrine Pratt referred to was not a sealing ordinance, but rather the means whereby Mormons, through baptism, were said to obtain a birthright as an "adopted" son of God and a member of the heavenly kingdom. There is no surviving evidence that the "law of adoption" sealing practice was taught by Joseph Smith or his contemporaries prior to Smith's death in 1844. However, adoptions appeared on the records of the Nauvoo Temple in 1846, and scholars generally assume that the practice was instituted by Brigham Young.
Brigham Young had been sealed by the law of adoption to Joseph Smith, and in January and early February 1846 (before leaving for the Rocky Mountains on 15 February 1846), Young was sealed to 38 young men by the law of adoption in the Nauvoo Temple. On 23 February 1847, Young "went to see Joseph" in a dream and Young said that he spoke with Smith about the law of adoption.