An endoscope including: a shaft having a distal end and a proximal end; an objective lens arranged at the distal end of the shaft; a main body arranged at the proximal end of the shaft, and an eyepiece arranged at and/or in the main body, wherein a proximal end of the eyepiece is closed off by an eyepiece window that is secured in an eyepiece window mount, wherein the eyepiece window and the eyepiece window mount are at least partially encapsulated with a fixing body made of injection-moldable material, the fixing body fixes the eyepiece window sealingly in the eyepiece window mount; an eyepiece cup is arranged at the proximal end of the shaft; and the eyepiece cup and the fixing body are integrally formed.