Where and when? There are wide range of beliefs and practices. If you want to go way back there were god kings in many "tribal" societies. With some of those the king had no authority. He was a god to be treated well when things were good and sacrificed when things were bad. But I suspect you mean Roman or post-Roman Europe.