Papain is taken from the fruit of the papaya tree. It is used for pain and swelling (inflammation) as well as fluid retention. Some people apply papain directly to the skin to treat infected wounds, sores, ulcers, and psoriasis.