The essential oil of Mosla chinensis Maxim cv. Jiangxiangru is known for its antibacterial ability. This study aimed to investigate the chemical composition of Jiangxiangru essential oil and its inhibitory effect on Staphylococcus aureus biofilm formation. Gas chromatography/mass spectrometry (GC–MS) was used to determine the chemical composition of Jiangxiangru essential oil. Subsequently, the eight major chemical components were quantitatively analyzed using GC– MS, and their minimum inhibitory concentration (MIC) values against S. aureus were tested. Biofilm formation was detected by crystal violet semi-quantitative method and silver staining. Of the 59 peaks detected, 29 were identified by GC–MS. Of these peaks, thymol, carvacrol, p-cymene, γ-terpinene, thymol acetate, α-caryophyllene, 3-carene, and carvacryl acetate were present at a relatively higher concentration. The results of the quantitative test showed that thymol, carvacrol, p-cymene, and γ-terpinene were the major components of the essential oil. Among the eight reference substances, only thymol, carvacrol, and thymol acetate had lower MICs compared with the essential oil. Essential oil, carvacrol, carvacryl acetate, α-caryophyllene, and 3-carene showed the better inhibition of S. aureus biofilm formation. When one fourth of the MIC concentrations were used for these substances (0.0625 mg/mL for essential oil, 0.0305 mg/mL for carvacrol, 1.458 mg/mL for carvacryl acetate, 0.1268 mg/mL for α-caryophyllene, and 2.5975 mg/mL for 3-carene), the inhibition rates were over 80%. However, thymol, γ-terpinene, thymol acetate, and p-cymene showed a relatively poor inhibition of S. aureus biofilm formation. When 1× MIC concentrations of these substances were used, the inhibition rates were less than 50%. In conclusion, Jiangxiangru essential oil and its major components, carvacrol, carvacryl acetate, α-caryophyllene, and 3-carene, strongly inhibited biofilm formation in S. aureus.