SGD (stochastic gradient descent) is an optimizer that repeatedly computes the gradient of the loss on a randomly chosen subset of the training data (a mini-batch) and moves the parameters a little in the opposite direction. Almost every optimizer in deep learning is SGD with additional tricks.
Gradient descent uses the gradient of the loss over the entire training set. But with millions of examples, computing over all of them for every update is far too expensive. SGD uses the gradient computed on a mini-batch as "an estimate of the full gradient", making each computation cheaper in exchange for more updates. The estimate contains error (noise), but on average it points in the right direction, so the loss can be lowered little by little.
As an analogy, instead of asking everyone in the country to learn public opinion, you ask about 100 people each time and adjust course little by little. Even if each survey is biased, repeated surveys bring you closer to the right direction.
This idea originates in the stochastic approximation method of Robbins and Monro (1951). For a situation where the form of the mean function is unknown and only noisy observations are available, they gave the following update as a way to find such that (Eq. (7) in the paper).
Treating as the gradient of the loss and as 0 gives the form of SGD: "find the point where the gradient is 0 using only noisy gradients" (Bottou et al., 2018).

