AI refers to a system that solves tasks that complex decision making. It basically mimics the human intelligence.
On the other hand, machine learning is a subset of AI and refers to an AI system that can self-learn using an algorithm and lots of data to make accurate predictions.