The first Islamic invasion of the Sasanian Empire, launched by Caliph Abu Bakr in 633, was a swift conquest, taking only four months. Abu Bakr sent his general, Khalid ibn Walid, to conquer Mesopotamia after the Ridda wars. After entering Iraq with his army of 18,000, Khalid won decisive victories in four consecutive battles: the Battle of Chains, fought in April 633; the Battle of River, fought in the third week of April 633; the Battle of Walaja, fought in May 633 (where he successfully used a pincer movement), and the Battle of Ullais, fought in mid-May of 633. In the last week of May 633, the capital city of Iraq fell to the Muslims after initial resistance in the Battle of Hira.