Machine learning (ML) is a subset of artificial intelligence (AI) that involves the use of algorithms and statistical models to analyze and draw inferences from patterns in data. Unlike traditional programming, where explicit instructions are coded, ML models learn from data inputs and improve their performance over time.