Molecular dynamics simulations predict a giant electrocaloric effect at the ferroelectric-antiferroelectric phase boundary in PZT (PbTiO 3 -PbZrO 3 ). These large-scale simulations also give insights into the atomistic mechanisms of the electrocaloric effect in Pb(Zr x Ti 1−x )O 3 . We predict a positive electrocaloric effect in ferroelectric PZT, but antiferroelectric PZT exhibits a negative to positive crossover with increasing temperature or electric field. At the antiferroelectric-toferroelectric phase boundary we find complex domain patterns. We demonstrate that the origin of giant electrocaloric change of temperature is related to the easy structural response of the dipolar system to external stimuli in the transition region.The electrocaloric effect is a reversible temperature change (∆T ) in materials under adiabatic conditions in response to applied electric (or magnetic) field. The discovery of a giant 12 K electrocaloric effect (ECE) in thin films of Zr-rich lead titanate compositions fuelled interest into the development of novel ferroelectric-based ECE materials 1 .Giant and moderate ECE's have since been reported for classical ferroelectrics like BaTiO 3 2 and for several relaxor materials 3 . Pb(Zr 1−x Ti x )O 3 (PZT) is a disordered solid solution ABO 3 perovskite, with Pb atoms occupying the A-site, and Ti and Zr cations randomly arranged among the B-sites. PbTiO 3 (PTO), the x=0.0 end member of Pb(Zr x Ti 1−x )O 3 , is a classical ferroelectric (FE), and the other end member PbZrO 3 (PZO) (x=1.0) is antiferroelectric (AFE). Near x=0.95 there is a phase boundary that separates AFE and FE phases 4 . Pb(Zr 1−x Ti x )O 3 (PZT) remains an active area of research for novel ECE materials 5,6 . The response of PZT to the applied electric field in the transition region between its ferroelectric and antiferroelectric phases is of particular interest since a giant electrocaloric response has been found experimentally for compositions close to this region 1 . Studies of electrocaloric response of AFE Pb 0.97 La 0.02 (Zr 0.95 Ti 0.05 )O 3 have provided an insight into a mechanism for the negative electrocaloric response. Authors suggested that misaligning of non-collinear dipoles provides different entropy contribution depending on the direction of the applied electric field 7 .Several theoretical works discuss caloric effects in perovskites. Large electrocaloric effects have been observed in the vicinity of ferroelectric-paraelectric phase transition, however, little is known about the ECE near AFE-FE phase boundary. Recent work with effective Hamiltonians reveals a strong potential of electrocalorics for thin PZO films with FE and AFE phase competition 8 . Phenomenological modelling for an AFE system predicted the negative electrocaloric effect in PZO ceramics, which agrees well with direct measurements a) Corresponding author a.kimmel@nanogune.eu of the EC temperature change in this system 9 .Molecular dynamics (MD) methods, using shell model potentials fit to first principles calculations, are promising ...