The ongoing transmission of SARS-CoV-2 necessitates the development of additional potent antiviral agents capable of combating the current highly infectious variants and future coronaviruses. Here, we present the discovery of potent nonpeptide main protease (Mpro) inhibitors with prominent antiviral activity and improved pharmacokinetic properties. Three series of 1,2,4-trisubstituted piperazine derivatives were designed and synthesized, and the optimal GC-78-HCl demonstrated high enzyme-inhibitory potency (IC50 = 0.19 μM) and exhibited excellent antiviral activity (EC50 = 0.40 μM), reaching the same level as Nirmatrelvir (EC50 = 0.38 μM). Additionally, GC-78-HCl displayed potent antiviral activities against various SARS-CoV-2 variants as well as HCoV-OC43 and HCoV-229E, indicating its potential broad-spectrum anticoronaviral activity. Notably, the pharmacokinetic properties of GC-78-HCl were somewhat enhanced compared to those of the lead compound. Furthermore, the cocrystal and molecular docking elucidated the mechanism of action. In conclusion, we discovered a novel nonpeptidic Mpro inhibitor with promising antiviral activity and a favorable pharmacokinetic profile.