The polarity of AlN epitaxial layers grown on (0001) sapphire, SiC, and nitrided sapphire substrates was examined by convergent beam electron diffraction, and the morphology and microstructure were characterized by atomic force microscopy and scattering contrast transmission electron microscopy (TEM). The AlN films grown on sapphire and SiC without a buffer layer or nitridation of the substrate were flat and had Al polarity. From TEM studies in both cross section and plan view, it was found that the threading dislocation (TD) density was similar to1x10(8) and 2x10(10) cm(-2) for screw-component and pure edge component dislocations, respectively. N-face AlN was realized by pregrowth nitridation of sapphire substrates, but these films contained a small volume fraction of Al-face inversion domains which were related to hexagonal pyramids defined by {1(2) over bar 02} facets. The density of screw-component TDs was significantly reduced due to nitridation. Cross-sectional TEM showed that the film grown on nitrided sapphire was almost free of screw-component TDs and that the density of pure edge TDs was similar to4x10(9) cm(-2). (C) 2004 American Institute of Physics.