Alignment of layers during manufacture of a multi-layer sample is
controlled by applying optical measurements to a measurement site in the
sample. The measurement site includes two diffractive structures located
one above the other in two different layers, respectively. The optical
measurements include at least two measurements with different
polarization states of incident light, each measurement including
illuminating the measurement site so as to illuminate one of the
diffractive structures through the other. The diffraction properties of
the measurement site are indicative of a lateral shift between the
diffractive structures. The diffraction properties detected are analyzed
for the different polarization states of the incident light to determine
an existing lateral shift between the layers.