The rule of law is a political and legal ideal that all people and institutions within a country, state, or community are accountable to the same laws, including lawmakers, government officials, and judges.