Fetching details from the dictionary...
main building (of a villa, palace, etc.)
「主殿」 has another reading with different meanings.
palace keeper; palace guard