He took hold of Makkah and the areas ruled by Ibn Azzubair!

Im learning Seerah and am in the topic About Abdullah ibn Az Zubayr and Hajjaj bin Yusuf. It is said that Abdullah ibn Az Zubayr was killed in the battle and Hajjaj took over. What did Hajjaj bin Yusuf took over? Caliph? Or just the commander of Qurayash?