Legumes like gram (chickpea) form symbiotic relationships with Rhizobium bacteria, creating nitrogen-fixing nodules on their roots. These bacteria convert atmospheric nitrogen into ammonia that plants can use. Mustard, rice, and cotton are non-leguminous plants and do not form such nitrogen-fixing nodules.