The invention refers to a tunnel typed coking furnace with a movable sliding bed and the method using the same belonging to the coking field, comprising a furnace body (48), a front sealing door (7), a back sealing door (25), a branch flue (10), a bottom flue (12) and a main flue (6), comprising a first preparation chamber (3) for coaling, a preheating segment (50), a carbonization segment (51), a coke dry quenching segment (52), and a second preparation chamber (23) for coke outlet; each part has different formation from the others, and are interconnected in series with the others; the sliding bed (37) for coaling and tamping coal material (44) passes through the abovementioned five segment in series in order to coke. The invention may realize a production coal material with fixed formation through formation process with pressure, so as to obtain the coke product with the same and big size, in addition to high strength, high utilization rate of heat energy, high degree of mechanization, and it also may realize the clean exhaustion of flue, so as to be able to protect the environment and water resource, and realize clean production.