Exact results of a mixed spin-12 and spin-1 Ising–Heisenberg diamond chain are obtained applying a generalized decoration–iteration transformation. Depending on the values of external field, exchange parameters and anisotropy there exist six different phases in the ground state of the system. The magnetic order of these phases is briefly described in this work.