How a tape measure retracts?

A tape measure retracts by using a spring-loaded mechanism. The spring is connected to a spool that winds up the tape when it is pulled out. When the tape is released, the spring unwinds and pulls the tape back into the housing.