U.S. stocks closed higher for the third time in four days as a rally in tech, airlines and biotech firms helped lead gains.

"It's not a market that is being driven by divisive issues," said Peter Cardillo, chief market economist at Rockwell Global Capital. The broad gains are "a good indicator that geopolitical concerns just maybe might wane for the week."