Ayurveda treats eczema by identifying and balancing aggravated doshas, particularly Pitta and Kapha, using herbal remedies, detoxification therapies, medicated oils, and dietary corrections to soothe skin inflammation and irritation.