A new scheme is proposed to realize the Fredkin quantum logic gate by using laser-controlled excitation of state in the three-mode laser and three-level system, in which the population depends on the laser phases and amplitudes.