Ezekiel 20 is a recounting of the sins of the generations of Israel from Egypt to Ezekiel's time.  They polluted themselves with idol worship including sacrificing their own children.  They sought often to be like the nations around them.  This is a recurring theme with Israel and one that is essential to understand with regard to the final outcome as outlined in Revelation.