In cataract surgery, the lens inside your eye that has become cloudy is removed and replaced with an artificial lens (called an intraocular lens, or IOL) to restore clear vision. The procedure typically is performed on an outpatient basis and does not require an overnight stay in a hospital or other care facility.