Testicular torsion is a surgical emergency that may result in the loss of the affected testicle if not treated promptly. The cause of testicular torsion is unknown. Testicular torsion detected in the fetus results when development of the protective sac that surrounds the testicles within the scrotum does not attach to the scrotum internally.