A washing and drying machine is provided, including a processing chamber (2) and an air heating channel (3) in fluid communication with the processing chamber. A heating apparatus (5) is disposed in the air heating channel. A liquid flow-through apparatus (6, 61, 62, 63) is disposed close to or surrounding the heating apparatus. An input channel (7) and an output channel (8) are connected to the liquid flow-through apparatus. The output channel (8) is connected to at least one of a detergent dispenser (13), a door gasket (12), the processing chamber (2), or a condensation channel (14). A fluid is heated by the heating apparatus (5) after entering the liquid flow-through apparatus from the input channel, and then flows out of the output channel, so that the heated liquid or high-temperature steam is obtained. The heated liquid or high-temperature steam performs cleaning, sterilization, and mildew elimination on the detergent dispenser, the door gasket, the processing chamber, and the condensation channel.