At a fundamental level, the piezoelectric effect arises from the asymmetric arrangement of atoms within the crystal lattice of certain materials. When mechanical stress is applied, this asymmetry causes a shift in the position of positive and negative charges, generating an electric field. Conversely, applying an electric field can induce mechanical strain.