Precise three dimensional dynamics for lunar soft landing were presented. To realize the minimal fuel strategy, an optimal control law was proposed based on the maximum principle. By solving the two-point boundary value problem, the optimal trajectory of the lunar soft landing was obtained. Performance of the proposed control law was verified by simulation.