Stock ETFs enjoyed decent gains in September to cap off a solid third quarter as gold and silver miner funds paced the advance for both periods.

The major equity indices tested 2007 highs in the third quarter although the market stumbled into the end of the month and quarter.

Top performing ETFs in the third quarter included those that track the mining sector, including Market Vectors Gold Miners (NYSEArca: GDX), Market Vectors Junior Gold Miners (NYSEArca: GDXJ), Global X Silver Miners ETF (NYSEArca: SIL), iShares MSCI Global Silver Miners Fund (NYSEArca: SLVP) and Global X Junior Miners ETF (NYSEArca: JUNR).

Residential housing ETFs such as SPDR S&P Homebuilders (NYSEArca: XHB) and iShares DJ U.S. Home Construction (NYSEArca: ITB) also enjoyed a solid quarter although they buckled in late September. [Builder ETFs Sliding with Home Sales]

Precious metals like gold and silver regained lost ground over the quarter, but mining stocks outperformed the underlying physical metals as investors jumped at cheap valuations, especially in light of potential inflationary pressures brought on by the Fed’s additional quantitative easing measures.

The first month of the quarter started off in back-and-forth trading after Spain requested bailouts for its ailing financial sector and the European Central Bank promised to do “whatever it takes” to help the Eurozone. [ETF Performance Report: July]

Stocks continued to rally through August on the rosier Eurozone outlook and in anticipation of additional Federal Reserve easing. [ETF Performance Report: August]

The markets hit multi-year highs before pulling back in the last week in September after the Federal Reserve’s mortgage-backed securities buying plan helped trigger a sharp rally in the markets. At the end of the month, the market’s attention was back on the potentially softening global economy.

For September, the top ETF performers included the Global X FTSE Greece 20 ETF (NYSEArca: GREK), Global X Silver Miners ETF (NYSEArca: SIL) and United States Natural Gas Fund (NYSEArca: UNG).

After a steep drop off in August, natural gas prices were recovering over September as the summer heat forced many to stay indoors and keep their air conditioners running.

The Dow Jones Industrial Average rose 2.1% over the month ended Sept. 26. Meanwhile, the Nasdaq Composite added 0.8% and the S&P 500 increased 1.8%.

Over the past three months ended Sept. 26, the Dow gained 7.7%, the Nasdaq increased 8.4% and the S&P 500 was 9.2% higher.

For more information on ETF performances, visit our ETF performance reports category.

Visit our ETF Analyzer for the most up-to-date ETF performance numbers.

Max Chen contributed to this article.