In a theocracy, government legitimacy derives from the spiritual authority of a god or a goddess.
The political legitimacy of a civil government derives from agreement among the autonomous constituent institutions-legislative, judicial, executive-combined for the national common good.