Many German alliances were formed to diplomatically isolate B. France. Prior to the WWI, France and Germany had many fights where France lost some territories to Germany, but bad blood definitely stayed between them. This is why Germany tried to befriend Italy, Russia, and Great Britain, among other countries, so as to create problems for France and stop it from developing in Europe.