A surface-receptor-coupled G protein regulates plant immunity through nuclear protein kinases.