In the mid-19th century, Marxism helped to consolidate, inspire, and radicalize elements of the labour and socialist movements in western Europe, and it was later the basis of Marxism-Leninism and Maoism, the revolutionary doctrines developed by Vladimir Lenin in Russia and Mao Zedong in China, respectively. It also inspired a more moderate form of socialism in Germany, the precursor of modern social democracy.