南宫 (Nángōng) is one of China's classical compound surnames (
复姓 fùxìng), meaning literally 'south palace'. It originated as a place-of-residence name in the Zhou dynasty and survives today only in a few thousand families — but it is hugely popular in wuxia and xianxia novels because it sounds aristocratic and old-school.