Deuteronomy 25:5-6

5 "If brothers are living together and one of them dies without a son, his widow must not marry outside the family.   Her busband's brother shall take her and marry her and fulfill the duty of a brother-in-law to her.

6 "The first son she bears shall carry the name of the dead brother so that his name will not be blotted out from Yasrael."