As I recall, he figured out that the Master of Ritual job was the key, and he took over once he got it.
He is that monstrum horrendum, an unprincipled man of genius.