nitrogen gas is converted to nitrogen-containing compounds. Two types of bacteria carry this out:
free living nitrogen-fixing bacteria: reduce gaseous nitrogen to ammonia which is used to make amino acids
mutualistic nitrogen-fixing bacteria: obtain carbohydrates from the plant and plant obtains amono acids from the bacteria