In this talk, several measurements in the top-quark sector are presented, obtained from the CMS data collected in 2011 and 2012 at centre-of-mass energies of 7 and 8 TeV. The production cross section of ttbar pairs is measured in several decay channels lepton+jets, dilepton and fully hadronic channels, including channels with the tau lepton. Differential cross sections are measured and are provided as a function of various kinematic observables; the results are compared with precise theory calculations. Measurements of several top-quark properties are reported, including the top pair charge asymmetry, the W helicity in top decays, the measurement of the production of ttbar pairs with W, Z, gamma, the spin correlation and the search for ano...