The invention discloses a retractable ditch trestle bridge, and relates to the technical field of bridges. The retractable ditch trestle bridge structurally comprises two steel beams, through holes Aare formed in both ends of the steel beams, the two steel beams are connected through a casing pipe, through holes B are formed in the casing pipe, the steel beams and the casing pipe are fixed through the through holes A and through holes B with limit bolts, and the length of the steel beams can be adjusted through the casing pipe and the limit bolts; and limited angle steel is fixed to the steelbeams, the steel beams are fixed to a bridge deck through the limit angle steel, inserting openings are separately formed in both sides of the bridge deck, vertical railings are separately inserted into the inserting openings, and horizontal railings are fixed to the vertical railings. The retractable ditch trestle bridge has the beneficial effects that finished glass fiber reinforced plastic products are adopted for on-site assembly, the installation work efficiency of the ditch trestle bridge is improved, inspection is convenient, and the defects of time consumption, labor consumption, difficult movement, non-durability and the like in the installation of a steel trestle bridge on a current construction site can be effectively overcome; and glass fiber reinforced plastic grilles are adopted for the bridge deck, and the glass steel grilles have the advantages of corrosion resistance, light weight, high strength, aging resistance, flame retardance, better comprehensive economic benefits, low installation cost and the like.