The present invention provides the Agrocybe aegerita lectin AAL-2, its encoding gene, the preparation methods and its uses. The invention uses the affinity chromatography separated the lectin protein AAL-2 from the Agrocybe aegerita total protein, of which the amino acid sequence is set forth in SEQ ID NO: 2 and the nucleotide sequence encoding the said protein is set forth in SEQ ID NO: 1. Cell tests indicate that the Agrocybe aegerita lectin AAL-2 isolated in the invention has excellent inhibition activity to the tumor cells, which can induce apoptosis of hepatoma cells, significantly. Animal experiments show that AAL-2 has a better therapeutic effect on tumor. The glycochip technology test results show that the AAL-2 preferentially binds to the carbohydrate or glycoproteins with the N-Acetylglucosamine as the terminal, which can be used as a reagent for testing the N-Acetylglucosamine relevant diseases or the N-Acetylglucosamine relevant carbohydrate structure.