The invention discloses a ceramic membrane for sewage treatment prepared by 3D printing technology and a preparation method thereof. The ceramic membrane comprises the following raw materials: diatomite, montmorillonite, calcium silicate, activated carbon, zeolite, attapulgite, carbon fiber , polyhydroxyvalerate, polybutylene succinate, titanium dioxide particles, alumina powder, magnesium oxide powder, glass fiber, initiator, catalyst, tackifier, toughener, coagulant, stabilizer, The ceramic membrane is made through the steps of decontamination, drying, mixing, and laser scanning sintering under the established three-dimensional file model. The sewage treatment ceramic membrane prepared by 3D printing technology in the present invention is rich in activated carbon, attapulgite, zeolite, etc., which can effectively absorb heavy metal ions, isolate non-beneficial bacteria and a large number of pollutants, etc., and only some trace elements and water molecules can pass through. The formed water indicators all meet the national "Drinking Water Sanitation Standard" (GB5749‑2006).