Electron microscope phase images, produced by direct reconstruction of the scattered electron wave from a focal series of high-resolution images, were used to determine the nature of defects formed in GaN:Mg crystals. We studied bulk crystals grown from dilute solutions of atomic nitrogen in liquid gallium at high pressure and thin films grown by the MOCVD method. All the crystals were grown with Ga-polarity. In both types of samples the majority of defects were three dimensional Mg-rich hexagonal pyramids with bases on the (0001) plane and six walls on {1123} planes seen in cross-section as triangulars. Some other defects appear in crosssection as trapezoidal (rectangular) defects as a result of presence of truncated pyramids.