Leghemoglobin is a heme-containing protein found in the root nodules of leguminous plants, where it plays a critical role in nitrogen fixation. It serves to transport and store oxygen, ensuring that nitrogen-fixing bacteria have an adequate supply of oxygen while preventing the detrimental effects of high oxygen concentrations. This unique protein is essential for the symbiotic relationship between legumes and nitrogen-fixing bacteria, allowing plants to thrive in nitrogen-poor soils.