Waging war to prepare the way for the Mahdi