It is well known that squeezed states can be produced by nonlinear optical processes, such as parametric amplification and four wave mixing, in which two photons are created or annihilated simultaneously. Since the Hamiltonian of the dynamic Casimir effect contains a 2 and a +2, photons in such a process are also generated or annihilated in pairs. Here we propose to get squeezed light through the dynamic Casimir effect. Specifically, we demonstrate it from the full quantum perspective and the semiclassical perspective successively. Different from previous work, we focus on generating squeezed states with the lowest average photon number, because such squeezed states have better quantum properties. For the full quantum picture, that is, phonons also have quantum properties, when the system is initially in the excited state of phonons, squeezed light cannot be generated during the evolution, but the light field can collapse to the squeezed state by measuring the state of phonons. When the phonon is treated as a classical quantity, that is, the cavity wall is continuously driven, squeezed light with the minimum average photon number will be generated in the case of off-resonance. This will play a positive role in better regulating the photon state generated by the dynamic Casimir system in the future.