In-situ annealing conditions in MOCVD for p-AlGaN is essential to activate Mg-atoms in the grown sample. It can help us heal the defects and also to remove H from the grown sample.But at the same time, we need to avoid Mg-atoms de-adsorption from the grown layer.