Machine learning acts as the pathway to AI. ML is the subset of AI. Machine learning is related to how machines develop their intelligence.