The invention relates to a cystoscope with a swinging head end. The cystoscope comprises a light source, a light transmission optical fiber, an imaging optical fiber, an image transmission optical fiber and an image display device, wherein the imaging optical fiber and the light transmission optical fiber are arranged in a sheath tube which is composed of a sheath tube body I and a sheath tube body II, the sheath tube body I is hinged to the sheath tube body II, and the outer wall of the sheath tube body I is provided with a sliding groove in the axial direction. An endoscope further comprises a swinging drive device which mainly comprises a gear, a rack and a push-pull piece, the rack is stuck in the sliding groove, the gear is mutually meshed with the rack and can freely rotate, and the end, away from the gear, of the rack is connected with the sheath tube body II through the push-pull piece. According to the cystoscope, the head end can swing in different degrees according to needs, the cystoscope is suitable for diagnosing any portion in the bladder, no blind areas exist in the bladder in the view, defects of an existing cystoscope are made up for, the diagnosis confirmation rate of the cystoscope is improved, a regulating mode accords with the pure mechanical principle, energy can be saved, complication of the cystoscope is reduced, and feasibility is improved.