The invention discloses fertilizer specially used for cucumber planting. The fertilizer is prepared from the following raw materials in parts by weight: 30-50 parts of organic fertilizer, 20-40 partsof potassium sulfate, 15-35 parts of potassium citrate, 20-30 parts of plant ash, 5-15 parts of edible fungus scraps, 3-8 parts of attapulgite powder, 5-10 parts of pine needle, 2-8 parts of shell powder, 5-10 parts of biochemical humic acid, 8-15 parts of corn stalk, 3-8 parts of fermentation residue, 1-6 parts of cassava powder, 1-5 parts of rapeseed cake, 1-3 parts of vermiculite powder, 0.4-0.8 part of ailanthus bark, 0.5-2.5 parts of bagasse, 2-8 parts of borax and 3-8 parts of compound bacteria for fermentation. The fertilizer provided by the invention solves the problems that in the prior art, the cucumber fertilizer is poor in fertilizer efficiency, relatively single in nutrient and poor in cucumber disease resistance; the fertilizer, provided by the invention, specially used for cucumber planting can improve the cucumber disease resistance and the fertilizer efficiency, and more fully provide nutrients.