Machine learning is the subset of artificial intelligence where systems learn patterns from data to make predictions or decisions without being explicitly programmed. A spam filter learns from millions of emails which ones are junk; a recommendation engine learns from browsing history what a customer might buy next. The three main branches are supervised learning (with labels), unsupervised learning (finding structure), and reinforcement learning (learning from rewards).