Testicular torsion, or torsion of the spermatic cord, causes rotation of the testicle, ultimately causing obstruction to venous drainage.