God guarded the rights of aliens (non-Israelites living in Israel), orphans, and widows since they were not as capable of defending themselves as other Israelites were (vv. 17-22).