Artificial Intelligence (AI) is the broad field of creating intelligent agents. Machine Learning (ML) is a subset of AI that uses algorithms to learn patterns from data. These ML algorithms can then be applied to make predictions or classifications.