Microwave resonant cavities,as fundamental components in the structure of modern industrial microwave devices,play a crucial role in determining the performance of these devices. In practical applications,electromagnetic lossy medium are often coated on the walls of the resonant cavities to meet design requirements,making the analysis of the electromagnetic characteristics of such cavities both theoretically significant and practically valuable. Based on the model of a resonant cavity loaded with an electromagnetic lossy dielectric,this article prepares general expressions for calculating the resonant frequency and quality factor of the TM0 mode using the mode-matching method established at the discontinuity of the dielectric. By calculating the first resonant mode TM01,the study analyzes the influence of the thickness and type of the lossy dielectric on its electromagnetic properties. The calculation results are in good agreement with Computer Simulation Technology Microwave Studio ( CST-MWS) simulation results,confirming the effectiveness of this algorithm in the calculation and analysis of resonant cavities loaded with electromagnetic lossy dielectrics.