International law comes mainly from treaties, which are written agreements that bind the countries that join them, and customary international law, which is unwritten rules that come from what countries consistently do and believe they are legally required to do. General principles of law common to the world’s legal systems fill gaps. Court decisions and the writings of leading experts help identify what the law is, but they aren’t sources on their own. A small group of rules, called jus cogens, bind every country and can’t be overridden. Many UN declarations and guidelines are soft law: influential, but not binding in themselves.
The official list: Article 38 of the ICJ Statute
The standard starting point is Article 38(1) of the Statute of the International Court of Justice, which tells the Court what law to apply.
| Article 38(1) | In plain language |
|---|---|
| (a) International conventions | Treaties |
| (b) International custom, as evidence of a general practice accepted as law | Customary international law |
| (c) The general principles of law recognised by civilised nations | Principles common to the world’s major legal systems. The wording is from 1945 and is now considered outdated |
| (d) Judicial decisions and the teachings of the most highly qualified publicists, as subsidiary means | Court judgments and leading expert writing, used to identify the law rather than to create it |
The list was written for the ICJ, but it is widely accepted as the general statement of where international law comes from.
Treaties
A treaty is a written agreement between countries, or between countries and international organisations, that is governed by international law. It may be called a treaty, convention, covenant, charter, protocol or agreement. The name doesn’t change its legal effect.
| Point | What it means |
|---|---|
| Consent | A treaty binds only the countries that have agreed to be bound, usually by ratification or accession |
| Good faith | Treaties in force must be performed in good faith. This is the principle pacta sunt servanda, found in the Vienna Convention on the Law of Treaties |
| Reservations | Countries can sometimes join a treaty while excluding or modifying certain provisions, if the treaty allows |
| Bilateral or multilateral | Between two countries, or among many, such as the UN Charter or the Geneva Conventions |
Strength as a source: very strong for the countries that have joined, because the rule is written and consent is clear.
Customary international law
Customary law is unwritten. It comes from how countries behave over time. It has two elements, both of which must be shown:
| Element | What it means | Example of evidence |
|---|---|---|
| State practice | Widespread, representative and consistent conduct by countries | Laws, official statements, military manuals, diplomatic correspondence, court decisions |
| Opinio juris | Countries follow the practice because they believe it is legally required, not just out of habit or courtesy | Statements that something is a legal obligation, votes on resolutions, positions taken in disputes |
The ICJ explained these two elements in the North Sea Continental Shelf cases (1969).
Why custom matters
- It binds all countries, including those that never signed a related treaty.
- Many treaty rules also exist as custom, so they continue to bind countries that leave or never joined the treaty.
- Examples include diplomatic immunity, many rules of the laws of war, and the core of the law of the sea.
The persistent objector
A country that has clearly and consistently objected to a customary rule while it was forming may not be bound by it. This exception is narrow, and it doesn’t apply to jus cogens.
General principles of law
When treaties and custom don’t answer a question, courts can draw on general principles found across the world’s legal systems.
| Principle | What it means |
|---|---|
| Good faith | Parties must act honestly in their legal relations |
| Nobody should be a judge in their own case | Decision-makers must be impartial |
| Reparation for harm | A breach of an obligation brings a duty to repair the harm caused |
| Res judicata | A matter finally decided shouldn’t be litigated again between the same parties |
| Estoppel | A party can’t go back on a position others have reasonably relied on |
In practice, general principles are used less often than treaties or custom, mainly to fill gaps.
Court decisions and expert writing
Under Article 38, court decisions and expert writing are subsidiary means of identifying the law.
- ICJ judgments bind only the parties to the case. The ICJ has no formal system of binding precedent, although it follows its earlier decisions closely in practice.
- Other tribunals, such as international criminal tribunals, arbitration panels and regional human rights courts, are also influential.
- National court decisions can show state practice, as well as being evidence of the law.
- The International Law Commission, a UN body of experts, drafts texts that often reflect or shape customary law, such as its articles on state responsibility.
- Leading scholars help explain and organise the law.
Rules at the top: jus cogens
Some rules are so fundamental that no country can opt out of them, and no treaty can override them. These are peremptory norms, or jus cogens.
| Generally recognised peremptory norms include the prohibitions of: |
|---|
| Aggression (the unlawful use of force against another state) |
| Genocide |
| Crimes against humanity |
| Slavery and the slave trade |
| Torture |
| Racial discrimination and apartheid |
| Serious violations of the basic rules of the laws of war |
| The right of peoples to self-determination is also widely recognised as peremptory |
Under the Vienna Convention on the Law of Treaties, a treaty that conflicts with a peremptory norm is void.
“Soft law”: influential but not binding
Much of what appears in international news isn’t binding law in itself.
| Soft law | Legal status |
|---|---|
| UN General Assembly resolutions | Generally recommendations. They can be evidence of opinio juris, and help form custom |
| Declarations | For example, the Universal Declaration of Human Rights (1948). It wasn’t binding when adopted, but many of its principles are now considered customary law or are in binding treaties |
| Guidelines, codes of conduct and principles | Such as the UN Guiding Principles on Business and Human Rights. Not binding, but widely used and often built into national law and contracts |
| Advisory opinions of the ICJ | Not binding judgments against a country, but carry significant legal authority |
Why soft law matters: today’s soft law can become tomorrow’s hard law, through treaties or through custom.
Is there a hierarchy?
Mostly no. Treaties and custom generally have equal weight. There are some important exceptions and tie-breaking rules:
| Rule | What it means |
|---|---|
| Jus cogens comes first | Peremptory norms override any conflicting treaty or custom |
| The UN Charter prevails over other treaties | Article 103 of the Charter says obligations under the Charter prevail over conflicting obligations under any other international agreement |
| Specific over general (lex specialis) | A more specific rule usually takes priority over a general one |
| Later over earlier (lex posterior) | Between the same parties, a later treaty usually takes priority over an earlier one on the same subject |
How these sources reach Canadian courts
| Source | How it applies in Canada |
|---|---|
| Treaties | Generally don’t change Canadian law by themselves. They must be implemented by legislation, federal or provincial depending on the subject |
| Customary international law | Part of Canadian common law, unless legislation clearly says otherwise. The Supreme Court of Canada confirmed this in R. v. Hape (2007) and Nevsun Resources Ltd. v. Araya (2020) |
| Interpretation | Courts presume Parliament intends to comply with Canada’s international obligations, and use international law to interpret Canadian statutes and the Charter |
Headline check: which source is being used?
When you read that something is “illegal under international law”, ask:
| Question | Why it matters |
|---|---|
| Is it a treaty rule? | Has the country concerned actually ratified that treaty? |
| Is it a customary rule? | Is there real evidence of widespread practice and a sense of legal obligation? |
| Is it jus cogens? | If so, it binds everyone, with no exceptions |
| Is it soft law? | A breach of a guideline or declaration isn’t the same as a breach of a binding rule |
| Who is making the claim? | A court judgment, a UN body, a government and an advocacy group carry different weight |
Frequently asked questions
What are the main sources of international law?
Treaties, customary international law and general principles of law. Court decisions and the writings of leading experts are used to identify what the law is.
What is customary international law?
Unwritten rules that come from widespread, consistent state practice, followed because countries believe it is legally required. Customary rules bind all countries, except in narrow cases where a country persistently objected while the rule was forming.
Is the Universal Declaration of Human Rights legally binding?
Not as a document. It was adopted as a UN General Assembly resolution. But many of its principles are now part of customary international law, or are found in binding treaties such as the International Covenant on Civil and Political Rights.
What is jus cogens?
A peremptory norm of international law that no country can opt out of, and no treaty can override. Examples include the prohibitions of genocide, slavery, torture and aggression.
Are ICJ decisions binding on all countries?
An ICJ judgment binds only the parties to that case. Its reasoning is highly influential, and its advisory opinions carry significant weight, but there is no formal system of binding precedent.
Related reading
This article is part of the Law Journal’s International Law and Global Institutions series. For the full picture, start with the main guide:
Your likely next questions:
For how these rules apply to climate change, including the ICJ’s 2025 advisory opinion, see Climate and Environmental Law Explained: Emissions Rules, Carbon Pricing and Climate Litigation.
Contact the Law Journal
| Story tips and corrections | Get in touch |
| Stay updated | Subscribe to the Law Journal newsletter |
| Need help with your own legal matter? | The Law Journal cannot give legal advice. Contact a lawyer or licensed paralegal, or the Law Society of Ontario Referral Service |
Disclaimer: This article is general information about international law as of September 2026. It is not legal advice, and reading it does not create a lawyer–client relationship.
About the author: Aali Saddique is a law writer who explains how the law works in plain language. He is not a lawyer, and his articles are for general information only.