Taking the Unified Modeling Language UML course as the research object, this paper carries out the online and offline hybrid teaching method, constructs the online curriculum resources and designs the offline classroom teaching in combination with the course characteristics. The practice shows that this hybrid teaching method has good teaching effect and improves the students' enthusiasm for autonomous learning.