This application relates to the field of valve body technology and discloses a switching valve and a
crankcase ventilation
system. The switching valve includes: a housing containing a first chamber, a second chamber, and a communication port; a first interface, a second interface, and a third interface, wherein the first and second interfaces communicate with the first chamber, and the third interface communicates with the second chamber; a valve body
assembly; a thermal spring; and a reset elastic
assembly. The switching valve has a first state and a second state. The thermal spring is configured to heat up and deform when energized, with its second end moving away from its first end and driving the valve body
assembly to move, causing the switching valve to switch from the first state to the second state. The thermal spring is configured to stop heating and recover its deformation after de-energization, and the reset elastic assembly causes the switching valve to switch from the second state to the first state. According to the embodiments of this application, the switching valve can connect to multiple ventilation pipes and can easily and correctly switch the connection relationship between the ventilation pipes.