There’s no universally agreed answer. Philosophers disagree, partly because “morality” can mean different things.

Broadly, there are a few major views:

1. **Moral realism: morality is objective**
   - Some moral truths are true independently of human opinion.
   - Example: “Torturing an innocent person for fun is wrong” would be wrong even if a society approved of it.
   - Realists may ground morality in reason, human well-being, suffering, rights, God, natural facts, or other objective features of reality.

2. **Moral subjectivism/relativism: morality is human-made**
   - Moral rules come from human attitudes, cultures, emotions, or agreements.
   - On this view, morality is not “discovered” like gravity; it is created by beings with needs, fears, preferences, and social lives.
   - Different cultures having different moral codes is often used as evidence for this.

3. **Constructivism: morality is invented, but not arbitrary**
   - Humans construct moral systems, but some are better than others because they better serve rational cooperation, reduce suffering, protect dignity, or allow societies to function.
   - For example, traffic laws are invented, but not all traffic systems are equally good. Similarly, moral norms may be human-made while still being assessable by objective standards like consistency, fairness, and consequences.

4. **Error theory/nihilism: moral claims pretend to be objective but aren’t**
   - When people say “murder is wrong,” they speak as if there is an objective moral fact.
   - But according to this view, there are no such facts; morality is a useful fiction or emotional projection.

My own most balanced answer would be:

**Specific moral codes are invented by humans, but they are not invented from nothing.** They are shaped by real facts about human beings: we can suffer, flourish, cooperate, be harmed, be deceived, be oppressed, and care about our lives. So while moral language and institutions are human creations, they may be constrained by objective facts about conscious creatures and social life.

So the strongest middle position is:

**Morality is human-constructed, but not merely arbitrary.**  
It is invented in form, but grounded in real features of human experience.
