The Austro-Prussian War, also known as the Seven Weeks' War, was a conflict between the Austrian Empire and the Kingdom of Prussia that lasted from June to August 1866. This war was pivotal in the unification of Germany, as it led to the exclusion of Austria from German affairs and established Prussia as the dominant power in northern Germany, thereby intensifying nationalistic sentiments and shaping future diplomatic tensions in Europe.