Enclosures protect universal motors from moisture by providing a physical barrier that prevents water ingress and environmental exposure. These enclosures are typically made from materials like metal or high-grade plastic, which are resistant to corrosion and water penetration. The design of the enclosure includes seals, gaskets, and sometimes coatings that enhance its waterproof capabilities. 
The enclosure is often rated according to standards such as the IP (Ingress Protection) code, which indicates the level of protection against solids and liquids. For moisture protection, a higher second digit in the IP rating (e.g., IP55, IP65) signifies better resistance to water. These enclosures are designed to prevent moisture from reaching the motor's internal components, such as the windings and bearings, which could otherwise lead to corrosion, short circuits, or electrical failures.
Additionally, enclosures may feature drainage holes or channels to allow any accumulated moisture to escape, further reducing the risk of damage. Some designs incorporate desiccants or moisture-absorbing materials to manage humidity levels inside the enclosure. 
By maintaining a controlled environment, enclosures ensure the motor operates efficiently and extends its lifespan, even in humid or wet conditions. This protection is crucial for applications where the motor is exposed to outdoor elements or high-moisture environments, such as in appliances, power tools, or industrial machinery.