We investigate the frequency estimation of an optical field suffering from an unavoidable dissipative environment. Generally, dissipative noises greatly reduce the precision. Here, we find that two-photon driving can improve the measurement precision by resisting the noises. Moreover, in long time, the uncertainty of frequency can be close to 0 with a proper magnitude of the parametric two-photon drive, which is in sharp contrast to the uncertainty going to infinity without the two-photon driving. Our results show that two-photon driving can realize the ultrasensitive measurement in dissipative environment under the long-encoding-time condition.