U.S. equity markets rallied on Thursday as investors piled into large-cap tech stocks driving Tesla and Apple to new records.

The Nasdaq rose 1.06 percent to its 35th record close of the year as Apple reclaimed its $2 trillion market value and as Tesla shares closed at $2,001.83 for the first time putting annual gains over 378 percent. Both stocks are set to split at the end of the month.

The Dow Jones Industrial Average rose over 46 points, or 0.17%, while the S&P 500 added 0.32% closing just shy of its prior record.