We study the geodesic equation for compact Lie groups 𝐺 and homogeneous spaces 𝐺∕𝐻, and we prove that the geodesics are orbits of products exp(𝑡𝑋 1 ) ⋯ exp(𝑡𝑋 𝑁 ) of one-parameter subgroups of 𝐺, provided that a simple algebraic condition for the Riemannian metric is satisfied. For the group 𝑆𝑂(3), we relate this type of geodesics to the free motion of a symmetric top. Moreover, by using series of Lie subgroups of 𝐺, we construct a wealth of metrics having the aforementioned type of geodesics.