A method for repairing at least one defect (220, 320, 420, 1020, 1120) of a photolithographic
mask for the
extreme ultraviolet (EUV)
wavelength range (1000, 1100), the method comprising the steps of: a. Determining the at least one defect (220, 320, 420, 1020, 1120), wherein determining the at least one defect comprises: generating aerial images of a focus stack of the at least one defect (220, 320, 420, 1020, 1120) at an actinic
wavelength of the photolithographic
mask (1000, 1100); and b. Determining a repair mode (600) for the at least one defect (220, 320, 420, 1020, 1120), wherein determining the repair mode (600) comprises: reconstructing a phase disturbance (595) of the at least one defect (220, 320, 420, 1020, 1120) from the focus stack of aerial images of the at least one defect (220, 320, 420, 1020, 1120); c.where the repair mode (600) is
diffraction-based to take into account the phase disturbance (595) caused by the at least one defect (220, 320, 420, 1020, 1120).