A spray gun works by breaking liquid (like paint) into tiny, uniform droplets and propelling them onto a surface to create an even, continuous coat. This process, called atomization, is achieved using air pressure or hydraulic pressure depending on the type of sprayer.