The first world war was caused by rising nationalism and imperialism which divided Europe into two hostile groups through alliances like the Triple Alliance and Triple Entente. The immediate cause was the Sarajevo Crisis in which the heir to the Austro-Hungarian throne was assassinated, leading Austria to declare war on Serbia and starting a chain reaction that engulfed the great powers of Europe in the first global war.