Long-term agricultural fertilization significantly affects nitrogen cycling in soils. However, there is little information about the response of different functional genes involved in the nitrogen cycle to chemical and organic fertilization, and the key factor influencing the community abundance.