Hazrat Mahdi’s (as) struggle will continue until all oppressive regimes have been dissolved.
[Ridha Kafi, Vol. 3, p. 471, Imam Baqr (as)]
Hazrat Mahdi (as) will persist in his intellectual struggle until the moral values of Islam completely rule the world and until nobody is oppressed by repressive regimes in the world.