The present invention provides an autofocus surgical microscope system that comprises a surgical microscope, a time-of-flight module, a focus controller, and a focus mechanism. The focus controller is coupled to the time-of-flight module. The focus mechanism is coupled to the focus controller and the surgical microscope. The time-of-flight module determines a distance to an eye structure, and the focus controller controls the focus mechanism based on the determined distance to focus the surgical microscope on the eye structure