An example of an unjust law is a law that prevents individuals from speaking out against the government or a law that allows discrimination against an individual based on their race, gender, or religion.