Testicular torsion is an emergency condition. It happens when the spermatic cord, which provides blood flow to the testis, rotates and become twisted.

The twisting cuts off the testis blood supply and causes sudden pain and swelling.