A major problem of current biomedical implants is the bacterial colonization and subsequent biofilm formation, which seriously affects their functioning and can lead to serious post-surgical complications. Intensive efforts have been directed toward the development of novel technologies that can prevent bacterial colonization while requiring minimal antibiotics doses. To this end, biocompatible materials with intrinsic antifouling capabilities are in high demand. Silk fibroin, widely employed in biotechnology, represents an interesting candidate.Here, we employ a soft-lithography approach to realize micro-and nanostructured silk fibroin substrates, with different geometries. We show that patterned silk film substrates support mammal cells (HEK-293) adhesion and proliferation, and at the same time, they intrinsically display remarkable antifouling properties. We employ Escherichia coli as representative Gram-negative bacteria, and we observe an up to 66% decrease in the number of bacteria that adhere to patterned silk surfaces as compared to control, flat silk samples. The mechanism leading to the inhibition of biofilm formation critically depends on the microstructure geometry, involving both a steric and a hydrophobic effect. We also couple silk fibroin patterned films to a biocompatible, optically responsive organic semiconductor, and we verify that the antifouling properties are very well preserved. The technology described here is of interest for the next generation of biomedical implants, involving the use of materials with enhanced antibacterial capability, easy processability, high biocompatibility, and prompt availability for coupling with photoimaging and photodetection techniques.