Bacteria which convert atmospheric nitrogen into nitrogen compounds like ammonia are called nitrogen-fixing bacteria.