The dimuon final-state signature is a key search channel for various new phenomena expected in theories that go beyond the Standard Model (SM). One of the most clean signatures would be the observation of a narrow resonance in the invariant-mass spectrum of lepton pairs, predicted by many models at the TeV scale. Examples include models described with extended gauge groups, featuring additional U(1) symmetries, based on GUTs, and the Sequential Standard Model (SSM), that includes a heavy boson with SM-like couplings. This search channel benefits from high-signal selection efficiency and relatively small and well-understood backgrounds. The most recent result obtained by the CMS experiment with the 2016 proton-proton LHC collisions at 13 TeV, corresponding to 13/fb, will be presented. No significant deviations from the SM expectation are observed. Upper bounds are set on the masses of the hypothetical particles.