Coronaviruses (CoVs), SARS-CoV-2, SARS-CoV, and MERS-CoV, the respective causative agents of coronavirus disease 2019, SARS, and MERS, continually threaten human health. The spike (S) protein and its receptor-binding domain (RBD) fragment of these CoVs are critical vaccine targets. Nevertheless, the highly mutated RBD of SARS-CoV-2 variants, especially Omicron, significantly reduces the efficacy of current vaccines against SARS-CoV-2 variants. Here a protein-based pan-beta-CoV subunit vaccine is designed by fusing the potent and conserved RBD of MERS-CoV into an RBD-truncated Omicron S protein. The resulting vaccine maintained effective functionality and antigenicity, induced broadly neutralizing antibodies against all of these highly pathogenic human CoVs, and elicited Omicron S-specific cellular immune responses, protecting immunized mice from SARS-CoV-2 Omicron, SARS-CoV, and MERS-CoV infections. Taken together, this study rationally designed a pan-beta-CoV subunit vaccine with broad-spectrum efficacy, which has the potential for development as an effective universal vaccine against SARS-CoV-2 variants and other CoVs with pandemic potential.