The invention relates to an antiviral pharmaceutical composition for topical use against those viruses with a lipid envelope, comprising, as active ingredients a cationic copolymer containing tertiary amine groups and a cationic surfactant containing quaternary ammonium groups.