Leghemoglobin is a red coloured pigment produced by certain leguminous plants in response to the roots being infected by certain nitrogen-fixing bacteria known as rhizobium, as part of the symbiotic interaction between plant and bacterium. It acts as a nitrogen or oxygen carrier.