Use of polymers as an anti-static agent in coating compositions, wherein the polymers are selected from the group consisting of a) cationic compounds according to formula containing quaternary nitrogen atoms, b) cationic poly-diallyl dialkylamines containing quaternary nitrogen atoms, and their copolymers, c) quaternisable polyalkyleneimines, d) cationic polyvinylimidazoles containing quaternary nitrogen atoms, and their copolymers and e) mixtures thereof, wherein in formula n is an integer between 5 and 500; Z is H, C 1 -C 18 alkyl, OH, C 1 -C 18 alkoxy, a C R 10, -O-C R 10 or COOR 10 group, wherein R 10 represents H or C 1 -C 18 alkyl; W is C 1 -C 24 alkylene, C 5 -C 7 cycloalkylene, -O-(CH 2 -O) p -, -O-(CH 2 -CH 2 -O) q -, -O-((CH 2) z- O) t or -CH 2 -T-CH 2 -CHZ-CH 2 -; T is C 1 -C 24 alkylene, C 5 -C 7 cycloalkylene, -O-(CH 2 -O) p -, -O-(CH 2 -CH 2 -O) q -, -O-(CH 2) z -O-; wherein p, q, z and t each independently represent integers from 0 to 100; Y is a group wherein R 1 and R 2 each independently represent H, C 1 -C 18 alkyl, C 1 -C 18 alkylene, wherein the alkylene group is connected to a nitrogen atom of another group Y, or R 1 and R 2 represent, together with the nitrogen atom to which they are connected, a ring with five, six or seven members, or Y is a group wherein R 1 and R 2 each independently represent H, C 1 -C 18 alkyl, C 1 -C 18 alkylene, wherein the alkylene group is connected to a nitrogen atom of another group Y, or both residues R 1, together with T and the nitrogen atoms to which they are connected, form a ring with five, six or seven members; and X - are halogenides, anions of a C 1 -C 18 carboxylic acid, anions of an aromatic or aliphatic sulfonic acid, sulfate, anions of an aromatic or aliphatic phosphoric acid, borate, nitrate, ClO 4 -, PF 6 - or BF4 -; and the polymers are contained in a proportion of 0.4 to 2.5 % by weight with respect to the total weight of the composition. a) cationic compounds according to formula containing quaternary nitrogen atoms, b) cationic poly-diallyl dialkylamines containing quaternary nitrogen atoms, and their copolymers, c) quaternisable polyalkyleneimines, d) cationic polyvinylimidazoles containing quaternary nitrogen atoms, and their copolymers and e) mixtures thereof, n is an integer between 5 and 500; Z is H, C 1 -C 18 alkyl, OH, C 1 -C 18 alkoxy, a C R 10, -O-C R 10 or COOR 10 group, wherein R 10 represents H or C 1 -C 18 alkyl; W is C 1 -C 24 alkylene, C 5 -C 7 cycloalkylene, -O-(CH 2 -O) p -, -O-(CH 2 -CH 2 -O) q -, -O-((CH 2) z- O) t or -CH 2 -T-CH 2 -CHZ-CH 2 -; T is C 1 -C 24 alkylene, C 5 -C 7 cycloalkylene, -O-(CH 2 -O) p -, -O-(CH 2 -CH 2 -O) q -, -O-(CH 2) z -O-; wherein p, q, z and t each independently represent integers from 0 to 100; Y is a group wherein R 1 and R 2 each independently represent H, C 1 -C 18 alkyl, C 1 -C 18 alkylene, wherein the alkylene group is connected to a nitrogen atom of another group Y, or R 1 and R 2 represent, together with the nitrogen atom to which they are connected, a ring with five, six or seven members, or Y is a group wherein R 1 and R 2 each independently represent H, C 1 -C 18 alkyl, C 1 -C 18 alkylene, wherein the alkylene group is connected to a nitrogen atom of another group Y, or both residues R 1, together with T and the nitrogen atoms to which they are connected, form a ring with five, six or seven members; and X - are halogenides, anions of a C 1 -C 18 carboxylic acid, anions of an aromatic or aliphatic sulfonic acid, sulfate, anions of an aromatic or aliphatic phosphoric acid, borate, nitrate, ClO 4 -, PF 6 - or BF4 -; and the polymers are contained in a proportion of 0.4 to 2.5 % by weight with respect to the total weight of the composition.