Ptolemy, the Greek astronomer who lived in the 2nd century AD, developed a comprehensive model explaining lunar phases. His work in the Almagest described how the changing positions of the Sun, Earth, and Moon create the different phases we observe from Earth.