The cremaster muscle is an involuntary muscle and contraction can occur during arousal which can prevent injury to the testicles during sex.[citation needed] Contraction also occurs during ejaculation.[2]