Both armies met at Ghazni, Ismail's containing elephants.[1] The battle was a long, drawn out affair, but at an opportune moment Mahmud charged Ismail's center which broke up.[1] Mahmud would capture his brother and take the crown. Ismail spent the rest of his life in comfortable captivity.