Lenin lived in Germany and West Europe before revolution.
The Imperial German government secretly arranged safe-passage for Lenin to return to Moscow from Switzerland in 1917. They gave him financing through 1918 with the hope that Lenin would start a revolution to throw out Tzar, which would cause Russia to withdraw its war with Germany during World War I. Germany was succeded on this plan, as we all know obviously.