The Kingdom of Saxony , existed from 1806 until 1918 . The Kingdom of Saxony , lasting between 1806 and 1918 , was an independent member of a number of historical confederacies in Napoleonic through post-Napoleonic Germany .