An endoscope system has imaging optics and includes at least one adjustable optical element. A working instrument is positionable relative to the imaging optics. A displacement measuring device is designed for detecting a distance covered by the working instrument with its positioning. A control device adjusts the optical element in dependence on a detected displacement.