Karl Marx (5 May 1818 – 14 March 1883) was a German philosopher, economist, historian, political theorist, sociologist, journalist and revolutionary socialist. Born in Trier to a middle-class family, Marx studied law and Hegelian philosophy. Due to his political publications, Marx became stateless and lived in exile in London, where he continued to develop his thought in collaboration with German thinker Friedrich Engels and publish his writings.