Cinnabar is the main ore from which mercury (Hg) is extracted. It is chemically represented as HgS.