5 "If two brothers are living together on the same property and one of them dies without a son, his widow may not be married to anyone from outside the family. Instead, her husband's brother should marry her and have intercourse with her to fulfill the duties of a brother-in-law. 6 The first son she bears to him will be considered the son of the dead brother, so that his name will not be forgotten in Israel. 7 "But if the man refuses to marry his brother's widow, she must go to the town gate and say to the elders assembled there, 'My husband's brother refuses to preserve his brother's name in Israel-he refuses to fulfill the duties of a brother-in-law by marrying me.' 8 The elders of the town will then summon him and talk with him. If he still refuses and says, 'I don't want to marry her,' 9 the widow must walk over to him in the presence of the elders, pull his sandal from his foot, and spit in his face. Then she must declare, 'This is what happens to a man who refuses to provide his brother with children.' 10 Ever afterward in Israel his family will be referred to as 'the family of the man whose sandal was pulled off'!

Matthew Henry's Commentary on Deuteronomy 25:5-10

Commentary on Deuteronomy 25:5-12

(Read Deuteronomy 25:5-12)

The custom here regulated seems to have been in the Jewish law in order to keep inheritances distinct; now it is unlawful.