Both machine learning and deep learning are part of AI. However, deep learning is a subset of machine learning that uses artificial neural networks to mimic the learning process of a human brain.