The Standard and Poor’s 500 index closed at a record high Monday, beating the mark it set a bit over a year ago.

The Dow Jones industrial average was within 1 percent of its own closing high, which was also set in May last year, but the Nasdaq composite has further to go. The technology-focused index is still negative for the year and would have to gain nearly 5 percent to regain the closing high it reached last July.

The S&P 500 gained 7.26 points, or 0.3 percent, to 2,137.16. That beat the record close of 2,130.82 it reached on May 21, 2015.

The Dow rose 80.19 points, or 0.4 percent, to 18,226.93. The Nasdaq composite rose 31.88 points, or 0.6 percent, to 4,988.64.

The market has had a rough ride in the year since the S&P 500’s last record. Investors have been rattled by plunging oil prices, falling corporate earnings, fears over possible rising interest rates, slowing growth in China, and, most recently, Britain’s historic vote to leave the European Union.

advertisement | advertise on newsday

In the weeks since the British referendum on June 23, however, many investors have come around to thinking that the consequences of the vote, which has come to be known as “Brexit,” may be contained largely to Britain, and they’ve gone back to buying stocks again.

Jonathan Corpina, senior managing partner at Meridian Equity Partners, expressed surprise that the market has bounced back so much that the S&P 500 has reached another record high.

“If you looked at the headlines from Brexit, you’d think that the world was coming to an end,” Corpina said. “And very quickly, in a matter of weeks, that was completely erased.”

Bond prices fell. The yield on the 10-year Treasury note rose to 1.43 percent from 1.36 percent.

Gold fell $1.80 to $1,356.60 an ounce.