In return, the bacteria provides the plant with nitrogen in forms that the plant can take in. Nitrogen fixing bacteria change nitrogen from the air into nitrogen compounds such as ammonia, nitrate, and nitrogen dioxide. They do so, through two living arrangements. One's as free living bacteria in the soil. The other's in association with plants of the Fabaceae and Leguminosae families, such as beans and peas.