Greek philosophy
In Plato's depiction, Socrates accepts a death sentence he thinks is unjust rather than escape. He argues that living under a city's laws creates an implicit agreement to obey them, and that persuasion, not evasion, is the proper way to resist.
A citizen who has benefited from the city and stayed under its laws has in effect promised to abide by them, even when a verdict goes against him; the right course is to try to persuade the city, not to slip away.
Source: Crito
Greek tragedy
Through the figure of Antigone, Sophocles stages the conflict between a ruler's decree and older, unwritten obligations. The play invites readers to weigh civic order against conscience and duty to the divine and to family.
Antigone holds that a king's edict cannot override the deeper laws of the gods and of kinship, so she buries her brother knowing the penalty.
Source: Antigone
Scholastic natural law
Aquinas holds that a human law contrary to natural law lacks the true force of law and is more a corruption of law than law. He allows that one may sometimes comply to avoid scandal or disorder, but never when the law commands something against God.
An unjust human rule does not bind in conscience as law should, though prudence may counsel compliance to prevent greater harm, unless it demands a wrongful act.
Source: Summa Theologiae
Christian philosophy
Augustine argues that law divorced from justice is hardly law at all, and that states without justice resemble large bands of robbers. Still, he counsels Christians to endure earthly authority while owing final loyalty to God.
A rule lacking justice has little claim to be called law, yet believers should bear earthly power patiently, refusing only what God forbids.
Source: On Free Choice of the Will
Social contract theory
Hobbes holds that the sovereign's commands define justice in civil society, and that the alternative to obedience is the chaos of the state of nature. Resistance is justified essentially only when the sovereign threatens one's life.
Because order depends on a single final authority, subjects should obey even harsh laws, since disobedience risks a return to war of all against all.
Source: Leviathan
Liberal political philosophy
Locke grounds legitimate government in consent and the protection of natural rights. When rulers systematically violate those rights, the people retain a right to resist and replace them.
Authority exists to protect life, liberty and property, so persistent abuse by rulers dissolves the duty to obey and permits resistance.
Source: Two Treatises of Government