Born into a wealthy middle-class family in Trier in the Prussian Rhineland, Marx studied at the universities of Bonn and Berlin where he became interested in the philosophical ideas of the Young Hegelians. After his studies he wrote for the Rheinische Zeitung, a radical newspaper in Cologne, and began to work out the theory of the materialist conception of history. He moved to Paris in 1843, where he began writing for other radical newspapers and met Friedrich Engels, who would become his lifelong friend and collaborator. In 1849 he was exiled and moved to London together with his wife and children, where he continued writing and formulating his theories about social and economic activity. He also campaigned for socialism and became a significant figure in the International Workingmen's Association.