We solve two classical conjectures by showing that if an action of a connected Lie group on a complete Riemannian manifold preserves the geodesics (considered as unparameterized curves), then the metric has constant positive sectional curvature, or the group acts by affine transformations. 1 2 Preliminaries: BM-structures, integrability, and Solodovnikov's V (K) spacesThe goal of this section is to formulate classical and new tools for the proof of Theorem 1. In Sections 2.1,2.2, we introduce the notion "BM-structure" and explain its relations to projective transformations and integrability; these are new instruments of the proof. In Section 2.3, we formulate in a convenient form classical results of Beltrami, Weyl, Levi-Civita, Fubini, de Vries and Solodovnikov. We will actively use these results in Sections 3,4.