For testicular torsion, immediate surgical intervention is crucial. If examined early and surgery is performed within 8 hours, the viability of the gonad can be preserved without damage, allowing it to maintain its function. During surgery, the twisted testicle is returned to its normal position, and then secured to the scrotum with stitches to prevent recurrence. However, if diagnosis is delayed, the non-viable portion of the testicle will be identified during surgery, necessitating its removal.