Deuteronomy 25:5-9

Thomson(i) 5 When brothers dwell together, and one of them die, and hath no issue, the wife of him who died shall not marry a man abroad, who is not near of kin. The brother of her husband shall go in unto her, and take her to wife, and cohabit with her; 6 and the child which she shall bear shall go by the name of him who died, so that his name shall not be blotted out from among Israel. 7 And if any man decline to take his brother's wife, the woman shall go to the gate, to the senate, and say, My husband's brother refuseth to raise up his brother's name in Israel. My husband's brother hath refused. 8 Thereupon the senate of his city shall send for him, and say to him, Thou must stand up, and say, I will not take her. 9 Upon which his brother's wife shall come, in the presence of the senate, and loose one shoe from his foot, and spit before his face, and addressing him, say, So shall be done to the man who will not build up his brother's house in Israel.