Why did God condone such terrible violence in the Old Testament?

This article has been translated into the following languages: