Immunity, such as legal immunity granted to certain individuals (e.g., heads of state, diplomats) or entities, can limit the application of the rule of law by exempting certain people from legal accountability and protections that apply to others.