Provided is a polymer dispersion of polymer particles comprising phosphorous-containing (meth)acrylate monomers and phosphorus-containing allylic monomers. Provided is a coating composition made from the polymer dispersion with both satisfactory coating viscosity stability and improved coating performances such as scrub resistance, stain resistance, corrosion resistance and durability.