Gold with traces of rust

Hardly anyone can escape the fascination of gold. But, what is the economic function of gold, and how does it perform socially and environmentally?