The use of Pontryagin's maximum principle to solve spacecraft motion control problems is demonstrated. The problem of the optimal control of the spatial reorientation of a spacecraft (as a rigid body) from an arbitrary initial angular position to an assigned final angular position in the minimum rotation time is investigated in detail. The case in which velocity parameters of the motion are constrained is considered. An analytical solution of the problem is obtained in closed form using the method of quaternions, and mathematical expressions for synthesizing the optimal control programme are given. The kinematic problem of spacecraft reorientation is solved completely. A design scheme for solving the maximum principle boundary-value problem for arbitrary turning conditions and inertial characteristics of the spacecraft is given. A solution of the problem of the optimal control of spatial reorientation for a dynamically symmetrical spacecraft is presented in analytical form (to expressions in elementary functions). The results of mathematical modelling of the motion of a spacecraft under optimal control, which confirm the practical feasibility of the control algorithm developed, are given. Estimates have shown that the turn time of modern spacecraft with a constrained magnitude of the angular momentum can be reduced by 15–25% compared with conventional reorientation methods. The greatest effect is achieved for turns through large angles (90° or more) when the final rotation vector is equidistant from the longitudinal axis and the transverse plane of the spacecraft.