Moulting, also known as ecdysis or shedding, is the periodic shedding of an insect's old cuticle and formation of a new one. It occurs multiple times during the immature stages before reaching adulthood. The key steps involve behavioral changes, loosening of the cuticle, formation of a subcuticular space, secretion of moulting fluid, rupture and removal of the old cuticle, and formation of a new cuticle. Moulting is controlled hormonally by the brain, corpora allata glands, and prothoracic glands. It allows for regeneration of damaged tissues and missing limbs.