Recent results on b-flavour physics obtained by the CMS Collaboration will be presented. The flexible and powerful CMS trigger system allows the experiment to be sensitive to b-physics phenomena of different kinds, mostly in channels with muons in the final state. In this paper, some of these results will be reported, namely single quarkonia production, J/ψ, ψ(2S), Υ (1S, 2S, 3S), as well as the observation of double prompt Υ production. The lifetimes of different states, B 0 → J/ψK , B 0 → J/ψK S , B 0 s → J/ψππ, B 0 s → J/ψφ, Λ b → J/ψΛ, and B + c → J/ψπ will be described. Other measurements include Λ b polarization, search for X + (5568) → B 0 s π + , and the rare decay B 0 s → µµ. Finally, the recent measurements of some angular parameters of the B 0 → K µµ decay will be reviewed.