Bilirubin is produced during the normal breakdown of hemoglobin. When red blood cells are destroyed in the spleen, hemoglobin is released and broken down into heme and globin. The heme is then converted into biliverdin and subsequently into bilirubin, which is transported to the liver for further processing and excretion.