The uneasy alliance between whom eventually won rebels the victory?