Depends on the cause. If it is caused by parasites, the parasite needs to be identified and treated with a fitting antiparasitic drug. If if it bacterial, you may need an antibiotic, and some probiotics may help. If a virus, mainly supportive therapy is used. Good nutrition is vital. Some treatments help stimulate immunity too.