What is the purpose of having three separate branches of government?

The purpose of having three separate branches of government is to ensure that no one branch has too much power. This system of checks and balances helps to protect the rights of citizens and maintain a balance of power. Each branch has its own responsibilities and powers, and each branch can check the power of the other two branches. This helps to ensure that no one branch can become too powerful and that the government is accountable to the people.