Outgrowing its skin, the caterpillar molts, shedding one exoskeleton and replacing it with another. Caterpillars may go through up to five molts. The third stage is the chrysalis or pupa.