The present invention relates to a process for preparing an aqueous polymer dispersion by free-radical emulsion polymerization of a monomer mixture which comprises N,N-diethylaminoethyl methacrylate, to the polymer dispersion obtainable by this process, and to the use thereof.