Nd:YAG lasers are used in ophthalmology to correct posterior capsular opacification, a condition that may occur after cataract surgery, and for peripheral iridotomy in patients with acute angle-closure glaucoma, where it has superseded surgical iridectomy.