官 is built from the 宀 (roof) and 㠯 (with (in 官·追)) components.
It belongs to a phonetic family with 管 and 館 — they share the 㠯 component and the reading カン.
A common word using 官 is 警官 (けいかん), meaning “police officer”.
Don't confuse it with 宮, 宣, and 宗.