The invention discloses a bionic jumping and walking mechanism. Existing robot can only move on the flat terrain and can not be adapted to the complicated terrain environment in the natural world. According to the bionic jumping and walking mechanism, the jumping mechanism is driven and locked or unlocked through a spring locking and unlocking mechanism, a main motor drives a fourth straight gear, an input shaft is supported by a gearbox through a bearing, the fourth straight gear, a ratchet wheel and a clutch fixed block are all fixed to the input shaft, the ratchet wheel is meshed with a pawl, a clutch movable block is connected with an output shaft through a spline, the clutch movable block and the clutch fixed block are embedded together, a base of a shifting fork driving motor is fixed to the gearbox, a second crank is fixedly connected to an output shaft of the shifting fork driving motor, the two ends of a second connecting rod are hinged to the second crank and the end of a shifting fork respectively, the middle of the shifting fork is hinged to a supporting shaft of a motor supporting frame, and a U-shaped fork body of the shifting fork is embedded in an annular groove of the clutch movable block. According to the bionic jumping and walking mechanism, jumping angle adjustment, jumping height adjustment, continuous jumping, automatic resetting and walking can be achieved so that the bionic jumping and walking mechanism can be adapted to the complicated environment.