Machine learning is a subset of artificial intelligence (AI) that allows computers to learn from data without being explicitly programmed. It involves the use of algorithms and statistical models to analyze and draw inferences from patterns within data.