Mg-doped p-GaN epitaxial layers prepared at different temperatures were prepared and characterized. It was found that we could achieve a higher hole concentration and a rough surface by reducing the growth temperature down to 800 degreesC. In0.23Ga0.77N/G