The sectarian militias took advantage of the deteriorating situation in Iraq and took control