This paper illustrates the problem of optimizing the trajectory of a direct landing from a halo orbit to the lunar surface with given coordinates. The study is considered in circular restricted three body problem. The descent operation consists of two stages: change in velocity for descent from orbit (the descent is considered as an instantaneous change in velocity of a spacecraft) and the main stage of braking, which is considered as a task of optimal performance of the spacecraft with finite thrust. The formulation and solution of the optimal control problem is presented, as well as numerical examples illustrating the accessibility of various regions of the lunar surface and examples of landing trajectories. © Published under licence by IOP Publishing Ltd.