An exchange-traded fund is a basket of securities — stocks, bonds, commodities or some combination of these — that you can buy and sell through a broker. ETFs offer the best attributes of two popular assets: They have the diversification benefits of mutual funds while mimicking the ease with which stocks are traded.