The aim of this paper is to perform homogenization of the equation of linear piezoelectricity with the polarization gradient. We assume that the material coefficients are microperiodic. This assumption can be weakened. One can also consider nonuniform homogenization. Then the homogenized (macroscopic) moduli depend on macroscopic variable.