A butterfly's life has got four stages: egg, caterpillar, chrysalis and butterfly.
First, a mother butterfly lays her eggs on a leaf. The eggs are very small. After a few days, a little caterpillar comes out of each egg. It often eats its eggshell first, and then it eats leaves. It grows very fast. Its skin gets too small, so it changes its skin four or five times.
After two or three weeks, the caterpillar stops eating. It hangs from a branch and makes a hard case around its body. This is called a chrysalis. Inside the chrysalis, the caterpillar's body changes completely.
For many butterflies, this takes about two weeks. Then the chrysalis opens and a butterfly comes out. Its wings are wet and soft, so it can't fly at first. It waits for a few hours. Then its wings are dry, and it can fly away!