Azathioprine is used to prevent organ rejection in people who have received a kidney transplant. It is usually taken along with other medications to allow your new kidney to function normally. Azathioprine is also used to treat rheumatoid arthritis.