World war I went from a war between Austria-Hungary and Serbia to a world war because of the expanded alliances of both the central power and the allied power, as each nation promised to support each of their alliances members in time of war.
Hope this helps