This website gives a great explanation of ML estimation.
http://statgen.iop.kcl.ac.uk/bgim/mle/sslike_1.html