King and Thoreau justify their position on civil disobedience by appealing to natural law and the principles of justice. They argue that it is morally wrong to obey laws that are unjust, and that people have a duty to disobey such laws in order to bring about change.