He was shot in July 1914 by a Serbian nationalist group The Black Hand. Austria-Hungary declared war on Serbia, which prompted Russia to side with Serbia, France sided with Russia, Germany declared war on France, and invaded through Belgium which caused Britain to declare war on Germany... Very complicated.