After eating tree leaves for about 2 months the gypsy moths caterpillars enter the pupal stage. While in this stage they transform into a moth.