Machine learning is a subset of artificial intelligence. While AI encompasses the broader concept of creating intelligent machines, machine learning focuses on enabling computers to learn and make decisions without explicit programming.