© 2016, The Author(s). The production of prompt charmed mesons D0, D+and D∗+, and their antiparticles, was measured with the ALICE detector in Pb-Pb collisions at the centre-of-mass energy per nucleon pair, (Formula presented.) , of 2.76 TeV. The production yields for rapidity |y| < 0.5 are presented as a function of transverse momentum, pT, in the interval 1–36 GeV/c for the centrality class 0–10% and in the interval 1–16 GeV/c for the centrality class 30–50%. The nuclear modification factor RAAwas computed using a proton-proton reference at (Formula presented.) TeV, based on measurements at (Formula presented.) TeV and on theoretical calculations. A maximum suppression by a factor of 5-6 with respect to binary-scaled pp yields is observed for the most central collisions at pTof about 10 GeV/c. A suppression by a factor of about 2-3 persists at the highest pTcovered by the measurements. At low pT(1-3 GeV/c), the RAAhas large uncertainties that span the range 0.35 (factor of about 3 suppression) to 1 (no suppression). In all pTintervals, the RAAis larger in the 30-50% centrality class compared to central collisions. The D-meson RAAis also compared with that of charged pions and, at large pT, charged hadrons, and with model calculations.