The present invention relates to the use of a biopolymer for reducing the formation of a biofilm, preferably on a substrate, whereby the biopolymer is preferably a polypetide, such as recombinant spider silk polypeptide. The present invention further relates to methods for producing a substrate which reduces the formation of a biofilm on a surface of said substrate.