When two people have a dispute, the judge declares who is righteous and who is guilty. If the guilty one deserves flogging, he is to be beaten in the judge's presence according to his offense, but with a maximum of forty stripes, so that the brother is not degraded in front of everyone. It is also commanded not to muzzle the ox while it treads out the grain, so that it may eat.
Levirate marriage is then regulated. If two brothers live together and one dies without a son, the surviving brother must marry the widow, and the first son will bear the dead man's name so that his name is not blotted out of Israel. If the brother refuses, the widow brings him before the elders; if he persists, she removes his sandal, spits in his face and declares that this is done to the man who will not build up his brother's house. His house will be called the house of him who had his sandal pulled off.
A woman whose husband is fighting with another man is forbidden to seize the other man's private parts. Next comes the command to keep honest weights and measures, because the Lord abhors anyone who deals dishonestly. The chapter ends with the memory of Amalek: on the way out of Egypt, he attacked the weak and straggling. When God gives Israel rest in the land, it is to blot out his memory from under heaven and not forget.