Countries that do not participate in military alliances with rival blocs for fear that formal alliance will lead them to unnecessary involvement in war .