The invention discloses a coking furnace capable of recycling heat energy, and the coking furnace comprises a furnace body, an exhaust gas recycling system and a raw coal gas treatment system, wherein the furnace body sequentially comprises a coal feeding segment, a rapid coal heating segment, a raw coal gas leading-out segment, a coal carbonization coking segment, a coke quenching and tempering segment, a dry coke quenching segment and a coke discharging segment from top to bottom; the exhaust gas recycling system comprises an exhaust gas leading-out unit, an exhaust gas heat exchanger, a commutator and the like; and the raw coal gas treatment system comprises a raw coal gas leading-out unit. By using the coking furnace disclosed by the invention, continuous coal carbonization coking canbe achieved and the exhaust gas after combustion is used for dry coke quenching in the furnace; pre-dried coal can be quickly heated to 300 DEG C during entering the furnace, the coal is carbonized and coked in the furnace body, and the exhaust gas generated by self-combustion is used for dry coke quenching at the furnace bottom after the exhaust gas is cooled by heat exchange with air, thus continuously producing coke; the pollution is less in the production process; the coal industrial chain is extended, the coking cost is lowered, the coking coal types are broadened, and the product quality is improved; the profit margins are expanded in a large extent; and the maintenance cost is low.