A frenectomy is the excision of the frenulum, a small ligament of tissue that prevents the foreskin from retracting too far.