World War I
Germany was afraid that because Austria-Hungary had attacked Serbia, Russia would attack Austria-Hungary to help Serbia. That made Germany feel that it had to help Austria-Hungary by attacking Russia first.