According to the present disclosure there is provided a method, apparatus and computer program for controlling a focusing mechanism. In various examples of the method, at least one measurement is received of the polarization of light reflected from at least one surface and a focusing mechanism is controlled dependent, at least in part, on the at least one polarization measurement.