While in Mecca, he sought a fatwa from the leading religious authorities against the foreign rulers who were persecuting his people in his homeland.
Mirwais and his forces then defeated a large Persian army that was sent to regain control over the area.