Machine learning is a subset of artificial intelligence (AI) that enables computers to learn from data without being explicitly programmed. It uses various techniques such as supervised learning, unsupervised learning, and reinforcement learning to make accurate predictions and decisions based on historical data.