Nitazoxanide works by interfering with the anaerobic energy metabolism of protozoa, which deprives them of the energy necessary for survival. It also has an effect on the maturation of viral particles in certain viral infections, making it a versatile treatment option.