Rhizobia are soil bacteria which become established inside root nodules of legumes ( the pea family : Fabaceae ) . Rhizobia are soil bacteria that fix nitrogen ( diazotrophy ) after becoming established inside root nodules of legumes ( Fabaceae ) .