Economic globalization is both an opportunity and a challenge for enterprises. In order to reduce the negative impact of economic globalization, enterprises with common goals want to deal with the crisis through alliances, but the results often backfire. Through research, this paper finds that the high failure rate and low performance of the alliance are influenced by the environmental uncertainty, the higher the environmental uncertainty, the lower the alliance performance. In addition, under the influence of behavioral uncertainty, the higher the behavioral uncertainty, the lower the alliance performance. Through further research, this paper finds that both contract mechanism and trust mechanism can control the negative effects of environment and behavior uncertainty on alliance performance. But when the uncertainty of environment and behavior is too high or too low, the contract mechanism not only can not play its original role, even can play the reverse effect. The regulation effect of trust mechanism is similar, except that when the uncertainty of behavior is very low, the inhibition effect of trust mechanism is not obvious, but it does not have adverse effect.