Nodulation (nod) genes are responsible for the initiation and formation of root nodules in symbiotic relationships between rhizobia and host legumes. Nif genes, on the other hand, encode the nitrogenase enzyme responsible for the actual fixation of nitrogen.