Methotrexate is a prescription medication used to treat certain types of cancers. It is also used to treat psoriasis, polyarticular juvenile idiopathic arthritis (PJIA), and rheumatoid arthritis (RA). Methotrexate belongs to a group of drugs called antimetabolites.