Timur was quick to dispatch his grandson Abu Bakr bin Miran Shah to restore Timurid authority in Iraq. He marched with an army and reached the banks of Algami Canal between Baghdad and Hillah where he met the forces of Qara Yusuf who put up a brave fight but was utterly defeated in late 1402.