The invention provides malania oleifera lectin and a method for preparing the same. The method comprises the following steps: grinding malania oleifera, stirring and socking the ground malania oleifera into cold water, grading and precipitating by using ammonium sulfate, ultrafiltering to remove salt, concentrating, carrying out ion exchange chromatography, purifying, ultrafiltering to remove salt, concentrating, freezing and drying to obtain the refined malania oleifera lectin. The prepared malania oleifera lectin has the molecular weight of about 60kd, the electrophoresis purity of above 90% and the potency of 1:10<5> or more, namely the HIV infected cell (inhibition concentration 50) IC50 of 1:10<5>, can agglutinate the red blood cells of a rabbit, a pig, a chicken, a duck and a mouse and can be used for preventing HIV infection.