The condenser's main function is to provide even and controlled illumination of the specimen, enhancing image clarity and contrast.