Torsion is a gastropod synapomorphy which occurs in all gastropods during larval development. Torsion is the rotation of the visceral mass, mantle, and shell 180˚ with respect to the head and foot of the gastropod. This rotation brings the mantle cavity and the anus to an anterior position above the head.
In some groups of gastropods (Opisthobranchia) there is a degree of secondary detorsion or rotation towards the original position; this may be only partial detorsion or full detorsion.
The torsion or twisting of the visceral mass of larval gastropods is not the same thing as the spiral coiling of the shell, which is also present in many shelled gastropods.