The invention relates to a pasteurizing plant and a method for operating a pasteurizing plant. The pasteurizing plant comprises at least two pasteurizing lines. A heating means of a heat pump is used to heat a heating liquid, and a cooling means of the heat pump is used to cool a cooling liquid. Based on heating and/or cooling demand in the pasteurizing lines, the heated heating liquid and/or the cooled cooling liquid each are used to heat respectively cool process liquid of the pasteurizing lines.