Due to the increase rapidly of electricity demand and the deregulation of electricity markets, the energy networks are usually run close to their maximum capacity to transmit the needed power. Furthermore, the operators have to run the system to ensure its security and transient stability constraints under credible contingencies. Security and transient stability constrained optimal power flow (STSCOPF) problem can be illustrated as an extended OPF problem with additional line loading and rotor angle inequality constraints. This paper presents a new approach for STSCOPF solution by a chaotic artificial bee colony (CABC) algorithm based on chaos theory. The proposed algorithm is tested on IEEE 30-bus test system and New England 39-bus test system. The obtained results are compared to those obtained from previous studies in literature and the comparative results are given to show validity and effectiveness of proposed method. (C) 2014 Elsevier Ltd. All rights reserved.