Goniotomy is a surgical procedure used to treat congenital glaucoma by creating an opening in the trabecular meshwork to improve aqueous humor outflow. It is typically performed on infants and young children, offering a high success rate when done by experienced surgeons in the early stages of the disease.