The Yamanis supported the Umayyads which was integral to them coming to power in the first Muslim civil war ("fitna") from 656 to 661 and to them regaining power in the second Muslim civil war from 683 to 692.