Aluminum nitride having a dense hexagonal structure is used as a high-temperature material because of its excellent heat resistance and high mechanical strength; its excellent piezoelectric properties are also attracting attention. The structure and residual stress of AlN thin films formed on glass substrate using TFT sputtering system are examined by XRD. The deposition conditions are nitrogen gas pressures of 1 × 102, 6 × 103, and 3 × 103, substrate temperature of 523 K, and sputtering time of 120 min. The structure of the AlN thin film is columnar, having a c-axis, i.e., a <00·1> orientation, which is the normal direction of the glass substrate. An X-ray stress measurement method for crystalline thin films with orientation properties such as columnar structure is proposed and applied to the residual stress measurement of AlN thin films with orientation <00·1>. Strength of diffraction lines other than 00·2 diffraction is very weak. As a result of stress measurement using AlN powder sample as a comparative standard sample, tensile residual stress is obtained when the nitrogen gas pressure is low, but the gas pressure increases as the residual stress is shifts toward compression. At low gas pressure, the unit cell expands due to the incorporation of excess nitrogen atoms.