The price of gold has often had a negative correlation with the stock market and often it has served as a hedge against inflation and currency volatility.
But, when investing in gold, it is important to remember what the much-hyped asset class is, and what it is not.
Having gold in your portfolio is a speculative play, since it does not yield income, dividends or distributions. But it is a good diversification tool.