The invention discloses a method for preventing viral infection in infection sickroom air by using a cabin type air conditioning unit, and belongs to a method for preventing viral infection in the technical field of air purification. In order to provide the method for preventing the infection of the viruses in the infection sickroom air by using the cabin type air conditioning unit, the cabin type air conditioning unit is included, the cabin type air conditioning unit comprises a clean cabin, a first air pipe and a second air pipe, the first air pipe and the second air pipe are arranged at the two ends of the clean cabin respectively, the first air pipe is internally provided with an ultraviolet lamp, an ozone device is arranged in the second air pipe, and an air inlet end of the first air pipe and an air inlet end of the second air pipe are connected with a fresh air purification device; a valve on an air outlet pipe is closed, a draught fan on the first air pipe or on the second air pipe is opened; the air first enters the first air pipe and treated by means of the ultraviolet lamp, and the disinfected and sterilized air enters the clean cabin; the air in the clean cabin enters the second air pipe, disinfected and sterilized through the ozone device, and then discharged outward.