This paper is concerned with the interaction of a piezoelectric screw dislocation with a semi-infinite dielectric crack in a piezoelectric medium with hexagonal symmetry. The solution of the considered problem is obtained from the dislocation solution of a piezoelectric half-plane adjoining a gas medium of dielectric constant ε0 by using the conformal mapping method. The intensity factors of stress, electric displacement and electric field and the image force on the dislocation are given explicitly. The effect of electric boundary conditions on the dislocation-crack interaction is analyzed and discussed in detail. The results show that ε0 only influences the electric displacement and electric field intensity factors and the image force produced by the electric potential jump.