The chapter begins with restrictions on who may enter the assembly of the Lord: certain people are excluded because of physical condition or doubtful birth. Ammonites and Moabites are barred until the tenth generation, because they did not meet Israel with bread and water on the way and hired Balaam to curse it, though God turned the curse into a blessing. By contrast, the Edomite is not to be abhorred, for he is a brother, nor the Egyptian, because Israel was a sojourner in his land; their children may enter in the third generation.
When the army goes out to war, it must keep itself from every evil thing. The camp is to be kept clean, with a place outside for relieving oneself and a trowel to cover it, because the Lord walks in the midst of the camp and must see nothing indecent.
The slave who flees from his master and seeks refuge is not to be returned but may live where he chooses. Sacred prostitution is forbidden, and its earnings may not come into the house of the Lord as an offering. No interest is to be charged to a fellow Israelite, though it may be charged to a foreigner. Vows made to the Lord must be paid without delay. Finally, someone passing through a neighbor's vineyard or grainfield may eat his fill but may not carry a container or use a sickle.