The last decisive war for the unification of Germany was

the Austro-Prussian War, also known as the Seven Weeks' War, which took place in 1866. This conflict was fought between the German Confederation led by Austria and the Kingdom of Prussia. It resulted in a decisive victory for Prussia, asserting its dominance over Austria and paving the way for the eventual unification of Germany under Prussian leadership.