variant of 甕|瓮[weng4]; earthen jar; urn
Phonosemantic compound. 瓦 represents the meaning and 公 represents the sound. Originally written as 公.
《說文》:“瓮,罌也。从瓦,公聲。”