Ammonium chloride is primarily used as a source of nitrogen in fertilizers for crop production. It provides readily available nitrogen to plants and helps in promoting their growth and development. It can also be used as a herbicide to control weed growth in certain crops.