The dynamic characteristics of the power system are becoming more and more complex, and the difficulty of operation control is increasing. Preventive control is the main means of power system transient stability control. This paper proposes a stacking ensemble learning-driven power system transient stability preventive control optimization method. Firstly, a transient stability assessment model based on Stacking Ensemble Deep Belief Nets (SEDBN) network is established in this research. The performance of weak classifiers is improved by SEDBN’s multi-layer ensemble structure, and the created transient stability estimator can extract diverse features and has better robustness and generalization abilities. Secondly, the trained transient stability estimator is integrated into the Aptenodytes Forsteri Optimization (AFO) algorithm as a “transient stability constraint discriminator”. Finally, with the goal of minimizing the cost of preventive control, an optimization algorithm for the preventive control of power system transient stability driven by SEDBN is established. Simulation results on IEEE 39-bus systems show that the proposed method can achieve highly efficient control solutions.