Machine learning is a subset of artificial intelligence that focuses on developing algorithms that can learn patterns and make predictions from data. Unlike traditional programming, where rules are explicitly defined, in machine learning, the system learns patterns from data and makes decisions based on that acquired knowledge.