An ophthalmic laser system is provided comprising: a laser source thatgenerates alaser beam of laser pulses; an XY scanner that scans the laser beam indirections transverseto a Z axis; and a Z scanner that scans the laser beam along the Z axis. Alsoprovided is amethod of scanning of a laser beam.