After the failures in chs. 11—14, this chapter was inserted in the divine record perhaps to remind the children of Israel concerning the way to be kept in a proper relationship with God. If the children of Israel had kept the ordinances in this chapter, they would have been rescued from further turmoil (cf. ch. 16).