Deep learning is a subset of machine learning. Generally speaking, you are training any model on your data, you are doing machine learning, However, some of these models can be from the category of deep learning. In machine learning models, you usually have to create inputs (also called features) manually, this can be for example number of occurrences of word X or Y, the length of the text, the number of capital letters, or anything else you can think of. For some tasks, such as predictions on tabular data from the database, this is completely fine as features like this are already available. However, you can see that creating such features manually is very hard for texts and images and that's where deep learning excels. Deep learning models are able to automatically learn how to extract features from raw inputs such as images, texts, audio and many others and afterwards, it can learn how to solve a particular task. Nowadays, deep learning dominates in the majority of tasks and it's usually a go-to solution for many of them.