Why is the separation of powers crucial for the functioning of a democracy?

Discuss the significance of the separation of powers doctrine in a democratic setup.