How does machine learning (ML) differ from AI?

Many confuse ML with AI, when the former is actually a subfield of the latter. For instance, ML is used to facilitate learning and decision-making. Another subset of ML is deep learning, which is currently the most effective algorithm.