A hospital will have to pay £350,000 in fines and costs after two patients died from Legionnaires' disease.
Chelmsford Crown Court heard how two patients died in 2007 and 2010 after contracting the pneumonia bacteria at Basildon Hospital in Essex.
Six more were infected during the same period. The hospital admitted failings under the Health and Safety at Work Act.
The hospital said it "apologised unreservedly".