The invention discloses a technique of biological treatment for coking wastewater. The filter chamber is composed of a preprocessing part, a biological treatment part and a physical treatment part, wherein the biological treatment part is composed of an anaerobic ceramsite filter chamber, an anoxia ceramsite filter chamber and an aerobic ceramsite filter chamber which are connected in series, spherical ceramsite filtering materials or irregular-shape ceramsite filtering materials are all filled in the anaerobic ceramsite filter chamber, the anoxia ceramsite filter chamber and the aerobic ceramsite filter chamber as biofilm culturing filling and filtrating precoats, the anaerobic ceramsite filter chamber employs an internal reflux mode, a reversed flow mode is employed between the anoxia ceramsite filter chamber and the aerobic ceramsite filter chamber, the precoats in the filter chambers are respectively formed by ceramsite filtering materials with different thickness, the filter chambers employs backwash to exclude accumulated sludge and suspended substance in the filter chambers into flotation tanks of the preprocessing part, the anaerobic ceramsite filter chamber, an anoxia ceramsite filter chamber employs regular water scrubbing to drive macro-gas-bubble in the chambers. Compared with the prior art, the technique has the advantages of prolonging sluicing periodic time, stabilizing operational effect, improving treatment loading, thereby reducing retention time of waterpower, decreasing accommodation area and investment of pile plant.