We combine transmission electron microscopy, high-resolution x-ray diffraction, cathodoluminescence, and photoluminescence experiments with first-principles calculations to study the formation, thermodynamic stability, structural, and optical properties of chemically ordered Al(x)Ga(1-x)N alloys (0