In this study, the impacts of the environmental temperature profile on the tropical cyclone eyewall replacement cycle are examined using idealized numerical simulations. It is found that the environmental thermal condition can greatly affect the formation and structure of a secondary eyewall and the intensity change during the eyewall replacement cycle. Simulation with a warmer thermal profile produces a larger moat and a prolonged eyewall replacement cycle. It is revealed that the enhanced static stability greatly suppresses convection, and thus causes slow secondary eyewall formation. The possible processes influencing the decay of inner eyewall convection are investigated. It is revealed that the demise of the inner eyewall is related to a choking effect associated with outer eyewall convection, the radial distribution of moist entropy fluxes within the moat region, the enhanced static stability in the inner-core region, and the interaction between the inner and outer eyewalls due to the barotropic instability. This study motivates further research into how environmental conditions influence tropical cyclone dynamics and thermodynamics.