Pilling happens when film-forming ingredients — gums, polymers and some thickeners — dry on the skin and roll into little balls when rubbed. It's usually caused by a high gum or polymer level, applying the next layer before the first has set, or layering products whose films don't get along (for example, a water-based gel over a silicone-heavy product).