In parliamentary governments it is common for the opposition party to have a shadow government in which top leaders of the opposition are prepared to assume certain ministries should the opposition come to power.
It is also used as a somewhat pejorative term to denote a government that takes over in the event of a disaster. The concept is popular in many conspiracy theories.
United States:
United Kingdom: