An endoscope having an adjustable viewing direction at a viewing angle, the endoscope including: an endoscope shaft having a longitudinal axis, wherein the endoscope shaft has a distal viewing window, a movable optical device for capturing objects provided in the endoscope shaft, and a focusing optical unit arranged between a distal viewing window and the movable optical device, wherein a focal distance of the focusing optical unit is changed in dependence on the viewing angle.