In this paper, the dynamics of a piezoelectric material is presented within the new framework of multi-variable distributed port Hamiltonian systems. This class of infinite dimensional system is quite general, thus allowing the description of several physical phenomena, such as heat conduction, elasticity, electromagnetism and, of course, piezoelectricity. The key point is the generalization of the notion of finite dimensional Dirac structure in order to deal with an infinite dimensional space of power variables. In this way, the dynamics of the system results from the interconnection of a proper set of elements, each of them characterized by a particular energetic behavior, while the interaction with the environment is described in terms o...