Began with the Triple Entente--an agreement of friendship between Great Britain, Russia, and France due to Germany's rising military.
Germany responded to this as a threat being countries on both sides of their border had created an alliance. they joined with Austria-Hungary and Italy to form the Triple Alliance.