The T2K experiment studies oscillations of an off-axis muon neutrinobeam between the J-PARC accelerator complex and the Super-Kamiokandedetector. Special emphasis is placed on measuring the mixing angleθ13 by observing νe appearance via the sub-dominant νμ → νeoscillation and searching for CP violationin the lepton sector.The experiment includes a sophisticated, off-axis, near detector, theND280, situated280 m downstream of the neutrino production target in order to measurethe properties of the neutrino beam and to understand better neutrinointeractions at the energy scale below a few GeV. The data collectedwith the ND280 are used to study charged-and neutral-current neutrino interaction rates and kinematics prior tooscillation,in order to reduce uncertainties in the oscillation measurementsby the far detector.A key element of the near detector is the ND280 electromagneticcalorimeter (ECal), consisting ofactive scintillator bars sandwiched between lead sheets and read outwith multi-pixel photon counters (MPPCs). The ECal is vital to thereconstruction of neutral particles, and the identification of chargedparticle species.The ECal surrounds the Pi-0 detector (PØD) and the tracking regionof the ND280, and is enclosed in the former UA1/NOMAD dipole magnet. This paper describes the design, construction and assembly of the ECal, as well as the materials from which it is composed. The electronic and data acquisition (DAQ) systems are discussed, andperformance of the ECal modules, as deduced from measurementswith particle beams, cosmic rays, the calibration system, and T2K data, is described.