What is the method of moments?
There is a nice article about this on Wikipedia.
It means that you are estimating the population parameters by selecting the parameters such that for certain specific moments the population distribution has the moments that are equivalent to the observed moments in the sample.
How is it different from MLE
The maximum likelihood estimate maximizes the likelihood function. In some cases this maximum can sometimes be expressed in terms of setting the population parameters equal to the sample parameters.
E.g. when estimating the mean parameter of a distribution and employ MLE then often we end up with using $\mu = \bar{x} $. However this does not need to be always the case ( related: https://stats.stackexchange.com/a/317631/164061 although in the case of the example there, the Poisson distribution, the MLE and MoM estimate coincide, and the same is true for many others). For example the MLE solution for the estimate of $\mu $ in a log normal distribution is:
$$\mu = 1/n \sum \ln (x_i) = \overline {\ln (x)}$$
Whereas the MoM solution is solving
$$\exp \left(\mu + \frac {1}{2}\sigma^2\right) = \bar {x}$$ leading to $$\mu = \ln (\bar {x}) - \frac {1}{2} \sigma^2$$
So the MoM is a practical way to estimate the parameters, leading often to the exact same result as the MLE (since the moments of the sample often coincide with the moments of the population, e.g. a sample mean is distributed around the population mean, and up to some factor/bias, it works out very well). The MLE has a stronger theoretical foundation and for instance allows estimation of errors using the Fisher matrix (or estimates of it), and it is a much more natural approach in the case of regression problems (I haven't tried it but I guess that a MoM for solving parameters in a simple linear regression is not working easily and may give bad results. In the answer by superpronker it seems like this is done by some minimization of a function. For MLE this minimization expresses higher probability, but I wonder whether it represents such a similar thing for MoM).