A spraying gun includes a gun body, a first seal ring, a second seal ring, a spraying head, a control pipe, and an outer casing. Thus, the spraying gun can perform an atomized water outlet mode and a linear or horn-shaped water outlet mode. In addition, a user only needs to rotate the control pipe relative to the gun body to switch the two different water outlet modes of the spraying gun, thereby facilitating the user operating the spraying gun. Further, the atomized water outlet mode of the spraying gun can distribute and reduce the water flow rate and the water pressure efficiently, so that the spraying gun is available for a gardening use.