Power behind the throne

The person who controls the person who seems to be in charge of something.

The general is the power behind the throne in the small country and he has much influence.