Ozone is generated using an ozone generator, which converts oxygen (O2) into ozone through a process known as corona discharge. When ozone comes into contact with pathogens, it disrupts their cell walls and damages their genetic material, thus inactivating them. This makes ozonation an effective method for disinfection and sterilization.