Effector-triggered immunity (ETI), the major host defense mechanism in plants, is often associated with programmed cell death (PCD). Plants lack close homologs of caspases, the key mediators of PCD in animals. So although the NB-LRR receptors involved in ETI are well studied, how they activate PCD and confer disease resistance remains elusive. We show that the Arabidopsis nuclear envelope protein, CPR5, negatively regulates ETI and the associated PCD through a physical interaction with cyclin-dependent kinase inhibitors (CKIs). Upon ETI induction, CKIs are released from CPR5 to cause overactivation of another core cell-cycle regulator, E2F. In cki and e2f mutants, ETI responses induced by both TIR-NB-LRR and CC-NB-LRR classes of immune receptors are compromised. We further show that E2F is deregulated during ETI, probably through CKI-mediated hyperphosphorylation of retinoblastoma-related 1 (RBR1). This study demonstrates that canonical cell-cycle regulators also play important noncanonical roles in plant immunity.