With the reign of his nephew Ludwig II (1864–1886), Prince Luitpold had increasingly to represent the royal house due to the king's long absence from the capital. In the Austro-Prussian War in 1866 Luitpold was commander of the 3rd Royal Bavarian Division. In 1869, he became Inspector General of the Bavarian Army, during the Franco-Prussian War in 1870 and 1871, he represented Bavaria in the German General Staff. In that capacity, he handed over Ludwig's "Kaiserbrief" on 3 December 1870, in which Ludwig endorsed the creation of the German Empire with the King of Prussia, Wilhelm I, as German Emperor.