âWhat we canât have is the same old politics of division that we have seen so many times before that dates back centuries,â Mr. Obama told a campaign rally for Philip D. Murphy in Newark. âSome of the politics we see now, we thought we put that to bed. That has folks looking 50 years back. Itâs the 21st century, not the 19th century. Come on!â
Later, in the Virginia state capital of Richmond, he seemed to respond to Mr. Trumpâs claim this week that Mr. Obama had not shown interest in the families of troops killed in combat. He did so by invoking the candidate Ralph S. Northamâs work as an Army doctor caring for veterans at Walter Reed National Military Medical Center.
âI can tell you as somebody who visited Walter Reed consistently throughout my eight years what it meant to have a medical staff that was literally helping to rebuild peopleâs lives,â Mr. Obama said.
Both former presidents have largely avoided taking on Mr. Trump since he was inaugurated in January, aside from occasional statements or comments in interviews. But the sight of the two most recent presidents back on the public stage on the same day, however coincidental, reinforced the broader alarm among establishment leaders of both parties.
âThe two presidents speaking out so forcefully and eloquently is a warning that some basic principles of democracy that both parties have long supported at home and abroad are in jeopardy,â said Antony J. Blinken, who served as Mr. Obamaâs deputy secretary of state and attended Mr. Bushâs speech on Thursday.
The bipartisan apprehension was illustrated by Mr. Blinkenâs presence. As managing director of the newly formed Penn Biden Center for Diplomacy and Global Engagement led by Mr. Obamaâs vice president, Joseph R. Biden Jr., Mr. Blinken attended to kick off a joint project with the George W. Bush Institute and Freedom House to counter the erosion of support for democratic principles and institutions at home and abroad.
Similarly, former Secretary of State Madeleine K. Albright, who served under President Bill Clinton, joined former Secretary of State Condoleezza Rice, who served under Mr. Bush, for a panel discussion with Nikki R. Haley, the ambassador to the United Nations. At times, the two former secretaries gently coached Ms. Haley to resist Mr. Trumpâs efforts to cut the State Department budget.
Afterward, Mr. Bush and Ms. Albright hugged and sat together, with the former president draping his arm over her shoulders.
Mr. Bush also released a âcall to actionâ report examining threats to the liberal democratic order and making recommendations for protecting American institutions. The paper was drafted by Peter H. Wehner, a former adviser in his White House, and Thomas O. Melia, a former State Department official under Mr. Obama.
For Mr. Bush, democracy and free trade are longtime themes, but there was an edge in his address that went beyond the usual nostrums. Asked by a reporter as he left the hall whether his message would be heard in the White House, Mr. Bush smiled, nodded slightly and said, âI think it will.â
In his speech, the former president lamented that âbigotry seems emboldenedâ and âour politics seems more vulnerable to conspiracy theories and outright fabrication.â
Pointing a finger at the nationâs leaders, he said, âWe know that when we lose sight of our ideals, it is not democracy that has failed; it the failure of those charged with preserving and protecting democracy.â
He acknowledged public discontent. âWe should not be blind to the economic and social dislocations caused by globalization,â he said. âPeople are hurting. Theyâre angry and theyâre frustrated. We must hear and help them. But we cannot wish globalization away any more than we could wish away the agricultural revolution or the industrial revolution.â
He also offered what seemed like a rejoinder to a president who uses Twitter as a weapon in a perpetual political war. âBullying and prejudice in our public life sets a national tone, provides permission for cruelty and bigotry and compromises the moral education of children,â Mr. Bush said.
The Bush family has never been fond of Mr. Trump, who belittled Jeb Bush during their contest for the Republican presidential nomination last year. Neither the former president nor his father, former President George Bush, voted for Mr. Trump, and the two issued a joint statement in August denouncing white supremacists after the violence in Charlottesville, Va., which Mr. Trump blamed on âboth sides.â
The younger Mr. Bush seemed to return to that on Thursday. âBigotry or white supremacy in any form is blasphemy against the American creed,â he said.
He also emphasized the seriousness of the Russian effort to influence last yearâs election, interference that Mr. Trump has dismissed as a âhoaxâ perpetuated by Democrats and the news media. âAmerica has experienced a sustained attempt by a hostile power to feed and exploit our countryâs divisions,â Mr. Bush said.
Advisers and allies to Mr. Bush said he spoke out because he was troubled about the larger forces he sees in the United States and around the world. Tom Bernstein, a longtime friend, said that the moment was a âstress test for democracyâ and that Mr. Bush wanted to make his points in a âvery direct but very dignifiedâ way.
âWeâre all called on to make sure that we get our country back, and I think all the things the president spoke of today, itâs a reaffirmation of American values,â Mr. Bernstein said.
Mr. Wehner said Mr. Bush was not interested in quarreling with Mr. Trump. âThereâs enough political food fighting going on,â he said. âHe doesnât want to be part of that. Itâs not part of that. What we need is people with some authority in American life to articulate a vision of the common good and the moral good and a vision of America.â
Emulating Mr. Bush, Mr. Obama has mostly stayed quiet since leaving office. But with accomplishments like his health care program under siege, he returned to the fray at least elliptically on Thursday.
âYou notice I havenât been commenting a lot on politics lately,â he said in Richmond. âBut hereâs one thing I know: If you have to win a campaign by dividing people, youâre not going be able to govern them.â
He added: âInstead of looking for ways to work together to get things done in a practical way, weâve got folks who are deliberately trying to make folks angry, to demonize people who have different ideas, to get the base all riled up because it provides a short-term tactical advantage.â
Mr. Obama was energized and comfortable, largely steering away from specific policy debates, but he made a point of noting in Newark that he âcreated millions of jobâ and âby the way, we covered a whole bunch of folks with insurance, too.â His allusions to Mr. Trump, however, were still clear.
âThe world counts on America having its act together,â he said. âThe world is looking to us as an example. The world asks what our values and ideals are and are we living up to our creed.â
An earlier version of a picture caption with this article misspelled the given name of a former secretary of state. She is Madeleine K. Albright, not Madeline.