AlGaN-based LEDs are promising for many applications in deep ultraviolet fields, especially for water-purification projects, air sterilization, fluorescence sensing, etc. However, in order to realize these potentials, it is critical to understand the factors that influence the optical and electrical properties of the device. In this work, AlxGa1−xN (x = 0.24, 0.34, 0.47) epilayers grown on c-plane patterned sapphire substrate with GaN template by the metal organic chemical vapor deposition (MOCVD). It is demonstrated that the increase of the aluminum content leads to the deterioration of the surface morphology and crystal quality of the AlGaN epitaxial layer. The dislocation densities of AlxGa1−xN epilayers were determined from symmetric and asymmetric planes of the ω-scan rocking curve and the minimum value is 1.01 × 109 cm−2. The (101¯5) plane reciprocal space mapping was employed to measure the in-plane strain of the AlxGa1−xN layers grown on GaN. The surface barrier heights of the AlxGa1−xN samples derived from XPS are 1.57, 1.65, and 1.75 eV, respectively. The results of the bandgap obtained by PL spectroscopy are in good accordance with those of XRD. The Hall mobility and sheet electron concentration of the samples are successfully determined by preparing simple indium sphere electrodes.