This chapter is about Joshua’s final word to Israel before his death. By this time he is 110 years old and he is warning them not to intermarry or cling to the customs of the remaining survivors of the land. He warns them that that the Lord is jealous and if they worship other gods His anger will burn against them and He will remove them from the land He placed them in. He reminds them of the miracles God performed, battles He won on their behave, enemies He defeated, cites, homes and land they received all under His command. He then told them (I’ll paraphrase here a little) “But hey, if you want to serve these gods that our Lord defeated and proved were nothing go ahead. But AS FOR ME and my family, we will serve the Lord.”
This chapter is so important today because it reminds us to count our blessings and know they are gifts from God. The public acknowledgement of these blessings recognizing these are gifts from the King of Kings proves to the world you aren’t ashamed and never will be regardless of the consequences.