Template polymerization of aniline was performed using a laccase-mediator system. The high redox-potential laccase from the basidiomycete fungus Trametes hirsuta was a catalyst for polymerization. The aniline dimer served as the redox mediator; atmospheric oxygen served as the oxidant. Sodium dodecylbenzenesulfonate micelles were used as a "soft" template. The biocatalytic polymerization of aniline resulted in conducting polyaniline/sodium dodecylbenzene sulfonate complex that was tested as a protective coating. The efficiency of the inhibition of copper corrosion by the complex was 86-87%, and the dissipation rate of positive and negative charges from cotton fabrics increased by 56 and 27 times, respectively.