Is there a pharaoh (or another god-king) overthrown, punished or incarcerated by his people?

by satyrcan
thisisnotathrowaw

I'm on mobile so hopefully someone can help me out on this but I believe there are several cases in the Asian kingdoms of a ruler viewed as a god but then deposed as a result of failed policies. I know in the Middle Kingdom the ruler had a "heavenly mandate" although that would be different from being viewed as "divine."