An optical assembly for an endoscope, the optical assembly including: an objective tube; and at least one optical element held in the objective tube; wherein the objective tube comprises at least one region acting as a clamping mount for the at least one optical element, and the at least one region of the objective tube acting as the clamping mount is at least sectionally formed of a shape-memory material.