The invention discloses a two-speed transmission for a pure electric vehicle. The two-speed transmission for the pure electric vehicle comprises a transmission shell. The transmission comprises a drive motor, an input gear, an input shaft, an intermediate shaft, an intermediate gear, a planetary gear train, a first power module, a second power module and a differential mechanism. The drive motor is in spline connection with an input shaft. The input shaft is provided with the input gear. The intermediate shaft is provided with the intermediate gear and a sun gear. The intermediate gear is meshed with the input gear. The planetary gear train comprises a planetary rack, a sun gear, a planet gear and a gear ring. The first power module comprises a first clutch and a sun gear. The second powermodule comprises a second clutch, a main speed reduction input gear and a main speed reduction output gear. The main speed reduction input gear is meshed with the main speed reduction output gear. The differential mechanism is fixedly connected with the main speed reduction output gear through a bolt. The two-speed transmission for the pure electric vehicle can meet the requirements for the vehicle power performance, highest vehicle speed and the like, the transmission efficiency of the power system is higher, power gear shifting is free of interruption, the comfort of passengers is improved,and the market application prospect is broad.