Communism is an ideology that is opposed to capitalism and advocates for public ownership of property and distribution of goods based on individual needs rather than class. It developed from socialist thought and was envisioned by Karl Marx as the final stage after primitive communism, slave empires, feudalism and capitalism. While communist governments historically established single-party rule intended to provide equality, in practice the ruling party accumulated most wealth and resources.