The present invention relates to a process for producing cheese. The method is particularly suitable for shredded cheese or block cheeses. More in particular, the process comprises the step of adding an antifungal to the cheese. Furthermore, the present invention relates to a device for producing cheese.