The aim of this study was to develop alginate and zein films containing natamycin, a natural antifungal agent, in order to limit/prevent the mould growth on the surface of kashar cheeses. The films were prepared by casting, and characterized in terms of antimicrobial and mechanical properties (tensile strength, elongation‐at‐break, and elastic modulus), and their morphology was examined by scanning electron microscopy (SEM). Mechanical properties of the zein films were found to be weaker than the alginate films. SEM analysis indicated that alginate films have a more regular structure than zein films, and a more homogenous distribution was observed at lower concentrations of natamycin. The antifungal activities of both films increased as the natamycin concentration (100, 200, 500, 1000, 2000, and 4000 ppm) increased; however, alginate films exhibited relatively high antifungal activity. The effects of films on the shelf life of kashar cheeses inoculated with Aspergillus niger and Penicillium camemberti were investigated during their storage under refrigerator conditions for 45 days. At high‐natamycin concentrations, zein films showed higher antifungal activity against both fungi at the end of the storage period.