Heat kills harmful bacteriaCooking food to the right temperature kills harmful bacteria. This makes food safe to eat. The wrong temperature can leave bacteria alive.