In 1815 after Napoleon was defeated Austria gained back a bit of its land back. In 1867 Austria and Hungary decided to combine their lands in an effort to appease Hungarian nationalism in Austria. In 1878 Austria and Hungary occupied Bosnia and Herzegovina and was later annexed in 1908. In 1918 after the World War I Austria, Austria was divided up and that was the end of the Hapsburg Empire.