The VAST majority of the deaths were from sectarian violence.
After toppling Saddam Hussein the US took political control in the country and decided who got to decide what. The slaughter that followed was a direct and rather predictable result of this.
That was caused by a power vacuum and US's intentional act to oust the Ba'ath Party, remove all control from a country and it will fall to chaos especially when blood feuds are involved .