The invention belongs to the technical field of molecular biology, and specifically relates to a PtMBL gene of Portunus trituberculatus mannose-binding lectin, its encoded protein and its application. The present invention uses the unigene and RACE technology obtained by transcriptome sequencing to amplify the PtMBL gene cDNA from Portunus trituberculatus, and finds that the recombinant PtMBL protein has significant bacteriostasis, bacterium binding and bacterium agglutination activities. The recombinant protein PtMBL has obvious inhibitory effects on Gram-negative bacteria (Vibrio alginolyticus, Pseudomonas aeruginosa) and Gram-positive bacteria (Staphylococcus aureus, Micrococcus luteus), and the minimum inhibitory concentrations are 0.81~1.61μM, 0.81μM, 0.81~1.61μM, 3.22~6.44μM. The recombinant protein PtMBL has obvious binding activity to Vibrio alginolyticus, Pseudomonas aeruginosa, Staphylococcus aureus, Micrococcus luteus and Pichia pastoris. In addition, in Ca 2+ In the presence of the recombinant protein PtMBL, it has obvious agglutination effect on Vibrio alginolyticus, Pseudomonas aeruginosa, Staphylococcus aureus, Micrococcus luteus and Pichia pastoris. The invention lays a foundation for the disease prevention and treatment of portunus trituberculatus, and has potential application value in the development of antibacterial drugs, bacterial agglutination preparations, new immune preparations, feed additive production and the like.