Democracies function on the understanding that all citizens are equal under and subject to the law. Rule of law can often be one of the most difficult areas for countries transitioning to democracy, as the advantages afforded to elites under autocratic systems can be hard to dislodge. When societies ensure that political leaders, business leaders, and social elites are not offered special judicial treatment, however, they are better equipped to promote equality, provide real chances of economic and social advancement, and attract foreign investment and economic activity.