The proximate cause? A Serbian nationalist shot the Austrian Arch Duke. So Austria declared war on Serbia. Then Serbia's ally Russia, got in on their side so Germany got in on Austria's side. Then England and France joined in on Russia's side and off they went!