Kant applies the principles of his moral philosophy to law and virtue. The Doctrine of Law analyzes the external conditions allowing the freedom of each person to coexist with that of others; The Doctrine of Virtue sets out the duties that the subject gives to himself, towards himself and towards others.