During the First World War, when Afghanistan was neutral, Habibullah Khan was met by officials of the Central Powers in the Niedermayer–Hentig Expedition, to declare full independence from the United Kingdom, join them and attack British India, as part of the Hindu–German Conspiracy. Their efforts to bring Afghanistan into the Central Powers failed, but it caused discontent among the population for keeping neutrality against the British. Habibullah was assassinated during a hunting trip in February 1919, and Amanullah Khan eventually assumed power. A staunch supporter of the 1915–1916 expeditions, Amanullah Khan provoked the Third Anglo-Afghan War, entering British India via the Khyber Pass.