U.S. stocks rose Tuesday after more companies said they made bigger profits at the end of last year than analysts expected and as Treasury yields eased.

The S&P 500 climbed 0.9%, while many markets around the world took only tentative steps following Donald Trump’s return to the White House on Monday. The Dow Jones industrial average rose 538 points, or 1.2%, and the Nasdaq composite added 0.6%.

In the foreign-currency market, the values of both the Mexican peso and Canadian dollar fell against the U.S. dollar after Trump said he expects to put 25% tariffs on Canada and Mexico starting on Feb. 1.

Charles Schwab rose 5.9% after delivering a better profit report for the end of 2024 than analysts expected.

Maplewood-based 3M climbed 4.2% after reporting profit and revenue for the end of 2024 that edged past analysts’ expectations.

Moderna also rose 5.4% after saying it received $590 million in total awards from the U.S. government for the continued development of flu vaccines. Oracle rallied 7.2% ahead of an expected announcement by Trump on investments in artificial-intelligence infrastructure involving the tech giant, OpenAI and SoftBank.

Such gains helped offset a 9.2% drop for Walgreen Boots Alliance. The U.S. Justice Department accused Walgreens late Friday of filling millions of prescriptions without a legitimate purpose, including for dangerous amounts of opioids.

All told, the S&P 500 added 52.58 points to 6,049.24. The Dow Jones Industrial Average gained 537.98 to 44,025.81, and the Nasdaq composite rose 126.58 to 19,756.78.

In the bond market, the yield on the 10-year Treasury fell to 4.56% from 4.62% late Friday. Like the U.S. stock market, bond trading had been closed on Monday in observance of Martin Luther King Jr. Day.

— Associated Press