Deuteronomy 25:6-7
25:6 Then the first son she bears will continue the name of the dead brother, thus preventing his name from being blotted out of Israel.
25:7 But if the man does not want to marry his brother’s widow, then she must go to the elders at the town gate and say, “My husband’s brother refuses to preserve his brother’s name in Israel; he is unwilling to perform the duty of a brother-in-law to me!”