A sanitizing machine comprising a supporting structure which includes two compartments or chambers (A, B), wherein, when the machine is in stand-by, a first compartment (A) is open and is able to house at least one container or object (V) to sanitize, while a second compartment (B) of the machine houses a sliding door (SP), which hermetically and automatically closes (D3) the first compartment (A) when the machine is on. The method thereof provides for at least one type of sanitizing cycle, such as a ozone cycle, a sanitizing liquid cycle and a combined cycle.