The most important originators of communist doctrine were Karl Marx and Frederick Engels. Like the socialists before them, they wanted to end the exploitation of the masses by the few. The capitalist system at that time required workers to work under harsh and dangerous conditions for little pay. The end goal of communism was to eliminate class distinctions among people, where everyone shared equally in the proceeds of society, when government would no longer be needed.