What was the purpose of the Great Powers establishing alliances?

(one short sentence)

The purpose was to strengthen their military and political positions, deter potential adversaries, and maintain a balance of power in Europe.