Barwari joined the Iraqi Army in 2004 after the invasion. He quickly rose through the ranks of the military ladder, becoming the commanding officer of the Iraqi Special Operations Forces (ISOF), an elite special forces detachment trained by the United States Army's Special Forces and equipped with American weaponry. In this capacity, he directed Iraqi special forces in the 2014 Anbar campaign.