Bilirubin is produced in the body when red blood cells become old and damaged and are destroyed in the spleen. Bilirubin goes in the blood from the spleen to the liver and then in bile into the small intestine. Some types of cancer and some cancer drugs can prevent the breakdown of bilirubin in the body so that it builds up in the blood or urine.