Nanostructures with giant magnetic anisotropy energies (MAEs) are desired in designing miniaturized magnetic storage and quantum computing devices. Previous works focused mainly on materials or elements with d electrons. Here, by taking Bi-X(X = In, Tl, Ge, Sn, Pb) adsorbed on nitrogenized divacancy of graphene and Bi atoms adsorbed on MgO (100) as examples, through ab initio and model calculations, we propose that special p-element dimers and single-adatoms on symmetry-matched substrates possess giant atomic MAEs of 72-200 meV, and has room temperature structural stability. The huge MAEs originate from the p-orbital degeneracy around the Fermi level in a symmetrymatched surface ligand field and the lifting of this degeneracy when spin-orbit interaction (SOI) is taken into account. Especially, we developed a simplified quantum mechanical model for the design principles of giant MAEs of supported magnetic adatoms and dimers. Thus, our discoveries and mechanisms provide a new paradigm to design giant atomic MAE of p electrons in supported nanostructures.