Azathioprine is broken down by the enzyme TPMT. If someone has too little of it, the drug builds up and suppresses the bone marrow.
Azathioprine is an immunosuppressant that works as a purine analogue, and its active metabolite is mercaptopurine. Check TPMT activity before starting, as people with low levels get severe bone marrow suppression. Side effects include bone marrow suppression, nausea, pancreatitis and non-melanoma skin cancer. Allopurinol increases its toxicity, so the dose must be lowered if both are used. Azathioprine is generally safe in pregnancy.