This invention relates to a system for surgery of the anterior segment of theeye witha femtosecond laser, more particularly to embodiments minimizing opticaldistortions of thelaser beam while scanning and focusing the laser beam into the eye. A lasersystem forophthalmic surgery includes a laser source, to generate a pulsed laser beam,an XY scanner,to receive the pulsed laser beam, and to output an XY-scanning beam, scannedin twodirections transverse to a Z axis. a Z scanner, to receive the XY-scanningbeam, and tooutput an XYZ-scanning beam. scanned in addition along the Z axis, the Zscannerincluding a first lens group to output a beam having an intermediate focalplane, and amovable lens group to receive the beam through the intermediate focal planeand tocollimate the beam in a variable manner, and an objective to receive thecollimated beamfrom the Z scanner and to focus the beam into a focal spot in a target region.