Yervoy is a prescription drug used to treat melanoma that has spread or unresectable. It works through a person's immune system, the body's natural defense.