The invention discloses a selenium and chromium-rich fertilizer specially used for cucumbers. The fertilizer is prepared from the following raw materials: alternanthera philoxeroides green manure, ammonium carbonate, calcium superphosphate, potassium chloride, a microorganism growth-regulating agent, a tea seed cake fertilizer, decomposed cow dung, pulverized fuel ash, carbendazim, a urease inhibitor, octyl mercaptan, sodium borate, kudzu vine powder, an organic phosphorus bacteria fertilizer, borax, Thiram wettable powder, organic trace elements, biomass ash residue, chromium trichloride and inorganic selenium salt, wherein the organic trace elements comprise a tartaric acid complex, a sucrose complex and a humic acid complex. The selenium-rich rice compound fertilizer provided by the invention has the advantages of being high in cucumber yield, high in plant disease resistance and suitable for large-area application; furthermore, the cucumbers obtained by applying the fertilizer are bigger and heavier, and have good quality; the selenium and chromium-rich cucumbers contain selenium and chromium elements which are necessary to a human body and animals, thus being high in nutritive value and good for health.