Washington (CNN) President Barack Obama and first lady Michelle Obama sought to lift Hillary Clinton to victory while Donald Trump warned she was the "face of failure" and predicted he would blow her away in Tuesday's election.

On a dramatic final day of the ugliest campaign in modern history, the candidates and their surrogates held nearly two dozen rallies, chased one another through swing states and made desperate last pleas to voters.

Clinton and Trump both go into Election Day with paths to the White House. But Clinton has many more options to secure the 270 electoral votes needed to win the presidency.

Perhaps reflecting optimism, Clinton stressed national unity in her closing appearances Monday, while Trump returned to his claims that the political system and the media were rigged against him.

The former secretary of state capped her campaign with a remarkable passing-of-the-baton rally with President Obama before a crowd of about 20,000 against the symbolic backdrop of Independence Hall in Philadelphia.

"I regret deeply how angry the tone of the campaign became," Clinton said, prompting one woman in the crowd to shout out, "Not your fault!"

Photos: Hillary Clinton's life in the spotlight Photos: Hillary Clinton's life in the spotlight Hillary Clinton accepts the Democratic Party's nomination for president at the Democratic National Convention in Philadelphia on July 28, 2016. The former first lady, U.S. senator and secretary of state was the first woman to lead the presidential ticket of a major political party. Hide Caption 1 of 43 Photos: Hillary Clinton's life in the spotlight Before marrying Bill Clinton, she was Hillary Rodham. Here she attends Wellesley College in Massachusetts. Her commencement speech at Wellesley's graduation ceremony in 1969 attracted national attention. After graduating, she attended Yale Law School. Hide Caption 2 of 43 Photos: Hillary Clinton's life in the spotlight Rodham was a lawyer on the House Judiciary Committee, whose work led to impeachment charges against President Richard Nixon in 1974. Hide Caption 3 of 43 Photos: Hillary Clinton's life in the spotlight In 1975, Rodham married Bill Clinton, whom she met at Yale Law School. He became the governor of Arkansas in 1978. In 1980, the couple had a daughter, Chelsea. Hide Caption 4 of 43 Photos: Hillary Clinton's life in the spotlight Arkansas' first lady, now using the name Hillary Rodham Clinton, wears her inaugural ball gown in 1985. Hide Caption 5 of 43 Photos: Hillary Clinton's life in the spotlight The Clintons celebrate Bill's inauguration in Little Rock, Arkansas, in 1991. He was governor from 1983 to 1992, when he was elected President. Hide Caption 6 of 43 Photos: Hillary Clinton's life in the spotlight Bill Clinton comforts his wife on the set of "60 Minutes" after a stage light broke loose from the ceiling and knocked her down in January 1992. Hide Caption 7 of 43 Photos: Hillary Clinton's life in the spotlight In June 1992, Clinton uses a sewing machine designed to eliminate back and wrist strain. She had just given a speech at a convention of the International Ladies' Garment Workers Union. Hide Caption 8 of 43 Photos: Hillary Clinton's life in the spotlight During the 1992 presidential campaign, Clinton jokes with her husband's running mate, Al Gore, and Gore's wife, Tipper, aboard a campaign bus. Hide Caption 9 of 43 Photos: Hillary Clinton's life in the spotlight Clinton accompanies her husband as he takes the oath of office in January 1993. Hide Caption 10 of 43 Photos: Hillary Clinton's life in the spotlight The Clintons share a laugh on Capitol Hill in 1993. Hide Caption 11 of 43 Photos: Hillary Clinton's life in the spotlight Clinton unveils the renovated Blue Room of the White House in 1995. Hide Caption 12 of 43 Photos: Hillary Clinton's life in the spotlight Clinton waves to the media in January 1996 as she arrives for an appearance before a grand jury in Washington. The first lady was subpoenaed to testify as a witness in the investigation of the Whitewater land deal in Arkansas. The Clintons' business investment was investigated, but ultimately they were cleared of any wrongdoing. Hide Caption 13 of 43 Photos: Hillary Clinton's life in the spotlight The Clintons hug as Bill is sworn in for a second term as President. Hide Caption 14 of 43 Photos: Hillary Clinton's life in the spotlight The first lady holds up a Grammy Award, which she won for her audiobook "It Takes a Village" in 1997. Hide Caption 15 of 43 Photos: Hillary Clinton's life in the spotlight The Clintons dance on a beach in the U.S. Virgin Islands in January 1998. Later that month, Bill Clinton was accused of having a sexual relationship with former White House intern Monica Lewinsky. Hide Caption 16 of 43 Photos: Hillary Clinton's life in the spotlight Clinton looks on as her husband discusses the Monica Lewinsky scandal in the Roosevelt Room of the White House on January 26, 1998. Clinton declared, "I did not have sexual relations with that woman." In August of that year, Clinton testified before a grand jury and admitted to having "inappropriate intimate contact" with Lewinsky, but he said it did not constitute sexual relations because they had not had intercourse. He was impeached in December on charges of perjury and obstruction of justice. Hide Caption 17 of 43 Photos: Hillary Clinton's life in the spotlight The first family walks with their dog, Buddy, as they leave the White House for a vacation in August 1998. Hide Caption 18 of 43 Photos: Hillary Clinton's life in the spotlight President Clinton makes a statement at the White House in December 1998, thanking members of Congress who voted against his impeachment. The Senate trial ended with an acquittal in February 1999. Hide Caption 19 of 43 Photos: Hillary Clinton's life in the spotlight Clinton announces in February 2000 that she will seek the U.S. Senate seat in New York. She was elected later that year. Hide Caption 20 of 43 Photos: Hillary Clinton's life in the spotlight Clinton makes her first appearance on the Senate Environment and Natural Resources Committee. Hide Caption 21 of 43 Photos: Hillary Clinton's life in the spotlight Sen. Clinton comforts Maren Sarkarat, a woman who lost her husband in the September 11 terrorist attacks, during a ground-zero memorial in October 2001. Hide Caption 22 of 43 Photos: Hillary Clinton's life in the spotlight Clinton holds up her book "Living History" before a signing in Auburn Hills, Michigan, in 2003. Hide Caption 23 of 43 Photos: Hillary Clinton's life in the spotlight Clinton and another presidential hopeful, U.S. Sen. Barack Obama, applaud at the start of a Democratic debate in 2007. Hide Caption 24 of 43 Photos: Hillary Clinton's life in the spotlight Obama and Clinton talk on the plane on their way to a rally in Unity, New Hampshire, in June 2008. She had recently ended her presidential campaign and endorsed Obama. Hide Caption 25 of 43 Photos: Hillary Clinton's life in the spotlight Obama is flanked by Clinton and Vice President-elect Joe Biden at a news conference in Chicago in December 2008. He had designated Clinton to be his secretary of state. Hide Caption 26 of 43 Photos: Hillary Clinton's life in the spotlight Clinton, as secretary of state, greets Russian Prime Minister Vladimir Putin during a meeting just outside Moscow in March 2010. Hide Caption 27 of 43 Photos: Hillary Clinton's life in the spotlight The Clintons pose on the day of Chelsea's wedding to Marc Mezvinsky in July 2010. Hide Caption 28 of 43 Photos: Hillary Clinton's life in the spotlight In this photo provided by the White House, Obama, Clinton, Biden and other members of the national security team receive an update on the mission against Osama bin Laden in May 2011. Hide Caption 29 of 43 Photos: Hillary Clinton's life in the spotlight Clinton checks her Blackberry inside a military plane after leaving Malta in October 2011. In 2015, The New York Times reported that Clinton exclusively used a personal email account during her time as secretary of state. The account, fed through its own server, raises security and preservation concerns. Clinton later said she used a private domain out of "convenience," but admits in retrospect "it would have been better" to use multiple emails. Hide Caption 30 of 43 Photos: Hillary Clinton's life in the spotlight Clinton arrives for a group photo before a forum with the Gulf Cooperation Council in March 2012. The forum was held in Riyadh, Saudi Arabia. Hide Caption 31 of 43 Photos: Hillary Clinton's life in the spotlight Obama and Clinton bow during the transfer-of-remains ceremony marking the return of four Americans, including U.S. Ambassador Christopher Stevens, who were killed in Benghazi, Libya, in September 2012. Hide Caption 32 of 43 Photos: Hillary Clinton's life in the spotlight Clinton ducks after a woman threw a shoe at her while she was delivering remarks at a recycling trade conference in Las Vegas in 2014. Hide Caption 33 of 43 Photos: Hillary Clinton's life in the spotlight Clinton, now running for President again, performs with Jimmy Fallon during a "Tonight Show" skit in September 2015. Hide Caption 34 of 43 Photos: Hillary Clinton's life in the spotlight Clinton testifies about the Benghazi attack during a House committee meeting in October 2015. "I would imagine I have thought more about what happened than all of you put together," she said during the 11-hour hearing. "I have lost more sleep than all of you put together. I have been wracking my brain about what more could have been done or should have been done." Months earlier, Clinton had acknowledged a "systemic breakdown" as cited by an Accountability Review Board, and she said that her department was taking additional steps to increase security at U.S. diplomatic facilities. Hide Caption 35 of 43 Photos: Hillary Clinton's life in the spotlight U.S. Sen. Bernie Sanders shares a lighthearted moment with Clinton during a Democratic presidential debate in October 2015. It came after Sanders gave his take on the Clinton email scandal. "The American people are sick and tired of hearing about the damn emails," Sanders said. "Enough of the emails. Let's talk about the real issues facing the United States of America." Hide Caption 36 of 43 Photos: Hillary Clinton's life in the spotlight Clinton is reflected in a teleprompter during a campaign rally in Alexandria, Virginia, in October 2015. Hide Caption 37 of 43 Photos: Hillary Clinton's life in the spotlight Clinton walks on her stage with her family after winning the New York primary in April. Hide Caption 38 of 43 Photos: Hillary Clinton's life in the spotlight After Clinton became the Democratic Party's presumptive nominee, this photo was posted to her official Twitter account. "To every little girl who dreams big: Yes, you can be anything you want -- even president," Clinton said. "Tonight is for you." Hide Caption 39 of 43 Photos: Hillary Clinton's life in the spotlight Obama hugs Clinton after he gave a speech at the Democratic National Convention in Philadelphia. The president said Clinton was ready to be commander in chief. "For four years, I had a front-row seat to her intelligence, her judgment and her discipline," he said, referring to her stint as his secretary of state. Hide Caption 40 of 43 Photos: Hillary Clinton's life in the spotlight Clinton arrives at a 9/11 commemoration ceremony in New York on September 11. Clinton, who was diagnosed with pneumonia two days before, left early after feeling ill. A video appeared to show her stumble as Secret Service agents helped her into a van. Hide Caption 41 of 43 Photos: Hillary Clinton's life in the spotlight Clinton addresses a campaign rally in Cleveland on November 6, two days before Election Day. She went on to lose Ohio -- and the election -- to her Republican opponent, Donald Trump. Hide Caption 42 of 43 Photos: Hillary Clinton's life in the spotlight After conceding the presidency to Trump in a phone call earlier, Clinton addresses supporters and campaign workers in New York on Wednesday, November 9. Her defeat marked a stunning end to a campaign that appeared poised to make her the first woman elected US president. Hide Caption 43 of 43

But Clinton went on to slam the "many troubling things" Trump had said about women, Muslims, Latinos and African-Americans. She said Trump's "most horrifying" comment was his warning that he may not accept the election result.

"Let's show tomorrow there will be no question about the outcome of this election!" Clinton said.

Obama introduced Clinton in a speech that was both a firm endorsement and a poignant farewell to politics.

"We now have the chance to elect a 45th president who will build on our progress who will finish the job ... who is smart, who is steady and who is tested," Obama said. "She will work, she will deliver. She won't just tweet."

JUST WATCHED Obama tells story of famed chant: Fired up, ready to go Replay More Videos ... MUST WATCH Obama tells story of famed chant: Fired up, ready to go 05:33

The President said he was counting on Americans not to elect Trump.

"America, I am betting on you one more time," Obama said, predicting the nation would "reject fear" and choose hope.

Michelle Obama, who has used her popularity to become perhaps Clinton's most powerful surrogate, called on Democrats to turn out in huge numbers to prevent Trump becoming president.

"This election is on us. It is in our hands," she said. "If we get out and vote tomorrow, Hillary Clinton will win."

'Face of failure'

Trump, meanwhile, presented himself as the face of change for Americans, whom he said had been let down by a corrupt political system.

"Hillary is the face of failure. She's the face of failure," Trump said, blasting Clinton's political record and service as secretary of state.

The Republican nominee claimed -- in defiance of polls showing a mid-single digit Clinton lead -- that he was tied with his rival in Pennsylvania, a state that forms a crucial part of Clinton's Democratic firewall.

"They say we're tied in Pennsylvania. I don't think so. I think we're going to blow them out tomorrow. Blow them out," Trump said at a rally in Scranton, one of the most hotly contested parts of the state.

The latest CNN Poll of Polls gives Clinton a four-point lead over Trump, 46% to 42%. In most of the swing states that will decide, the race is tight. But if Clinton can hang on to most states that have voted Democratic in recent elections and add at most a couple of swing states, she will likely win the election

But Democrats are worried about Trump's strength in the Midwest -- particularly in Michigan, which has not voted Republican since 1988. Trump has been making a strong push there amid narrowing polls.

Trump campaign manager Kellyanne Conway predicted that Trump will win Michigan, telling ABC's "Good Morning America" that the campaign feels "really good" about the latest polling in upper Midwest states.

But Clinton campaign manager Robby Mook said late visits to Michigan by both Clinton and Obama on Monday were more a function of the calendar and the lack of early voting there than a sign of genuine anxiety.

"Our strategy these last few days is to focus on the states where voting overwhelmingly happens on Election Day," Mook said on CNN's "New Day ." "Previously, as you've seen, we've been focused on states like Florida, Nevada, North Carolina, where the majority of the voting happens early."

He continued: "So, this is really a reflection of the voting calendar. Donald Trump has been kind of running to each and every state it seems. So they have their strategy. But we have ours."

Trump scraps for every electoral vote

Trump has little margin for error.

Photos: Donald Trump's rise Photos: Donald Trump's rise President-elect Donald Trump has been in the spotlight for years. From developing real estate and producing and starring in TV shows, he became a celebrity long before winning the White House. Hide Caption 1 of 37 Photos: Donald Trump's rise Trump at age 4. He was born in 1946 to Fred and Mary Trump in New York City. His father was a real estate developer. Hide Caption 2 of 37 Photos: Donald Trump's rise Trump, left, in a family photo. He was the second-youngest of five children. Hide Caption 3 of 37 Photos: Donald Trump's rise Trump, center, stands at attention during his senior year at the New York Military Academy in 1964. Hide Caption 4 of 37 Photos: Donald Trump's rise Trump, center, wears a baseball uniform at the New York Military Academy in 1964. After he graduated from the boarding school, he went to college. He started at Fordham University before transferring and later graduating from the Wharton School, the University of Pennsylvania's business school. Hide Caption 5 of 37 Photos: Donald Trump's rise Trump stands with Alfred Eisenpreis, New York's economic development administrator, in 1976 while they look at a sketch of a new 1,400-room renovation project of the Commodore Hotel. After graduating college in 1968, Trump worked with his father on developments in Queens and Brooklyn before purchasing or building multiple properties in New York and Atlantic City, New Jersey. Those properties included Trump Tower in New York and Trump Plaza and multiple casinos in Atlantic City. Hide Caption 6 of 37 Photos: Donald Trump's rise Trump attends an event to mark the start of construction of the New York Convention Center in 1979. Hide Caption 7 of 37 Photos: Donald Trump's rise Trump wears a hard hat at the Trump Tower construction site in New York in 1980. Hide Caption 8 of 37 Photos: Donald Trump's rise Trump was married to Ivana Zelnicek Trump from 1977 to 1990, when they divorced. They had three children together: Donald Jr., Ivanka and Eric. Hide Caption 9 of 37 Photos: Donald Trump's rise The Trump family, circa 1986. Hide Caption 10 of 37 Photos: Donald Trump's rise Trump uses his personal helicopter to get around New York in 1987. Hide Caption 11 of 37 Photos: Donald Trump's rise Trump stands in the atrium of the Trump Tower. Hide Caption 12 of 37 Photos: Donald Trump's rise Trump attends the opening of his new Atlantic City casino, the Taj Mahal, in 1989. Hide Caption 13 of 37 Photos: Donald Trump's rise Trump signs his second book, "Trump: Surviving at the Top," in 1990. Trump has published at least 16 other books, including "The Art of the Deal" and "The America We Deserve." Hide Caption 14 of 37 Photos: Donald Trump's rise Trump and singer Michael Jackson pose for a photo before traveling to visit Ryan White, a young child with AIDS, in 1990. Hide Caption 15 of 37 Photos: Donald Trump's rise Trump dips his second wife, Marla Maples, after the couple married in a private ceremony in New York in December 1993. The couple divorced in 1999 and had one daughter together, Tiffany. Hide Caption 16 of 37 Photos: Donald Trump's rise Trump putts a golf ball in his New York office in 1998. Hide Caption 17 of 37 Photos: Donald Trump's rise An advertisement for the television show "The Apprentice" hangs at Trump Tower in 2004. The show launched in January of that year. In January 2008, the show returned as "Celebrity Apprentice." Hide Caption 18 of 37 Photos: Donald Trump's rise A 12-inch talking Trump doll is on display at a toy store in New York in September 2004. Hide Caption 19 of 37 Photos: Donald Trump's rise Trump attends a news conference in 2005 that announced the establishment of Trump University. From 2005 until it closed in 2010, Trump University had about 10,000 people sign up for a program that promised success in real estate. Three separate lawsuits -- two class-action suits filed in California and one filed by New York's attorney general -- argued that the program was mired in fraud and deception. Trump's camp rejected the suits' claims as "baseless." And Trump has charged that the New York case against him is politically motivated. Hide Caption 20 of 37 Photos: Donald Trump's rise Trump attends the U.S. Open tennis tournament with his third wife, Melania Knauss-Trump, and their son, Barron, in 2006. Trump and Knauss married in 2005. Hide Caption 21 of 37 Photos: Donald Trump's rise Trump wrestles with "Stone Cold" Steve Austin at WrestleMania in 2007. Trump has close ties with the WWE and its CEO, Vince McMahon. Hide Caption 22 of 37 Photos: Donald Trump's rise For "The Apprentice," Trump was honored with a star on the Hollywood Walk of Fame in January 2007. Hide Caption 23 of 37 Photos: Donald Trump's rise Trump appears on the set of "The Celebrity Apprentice" with two of his children -- Donald Jr. and Ivanka -- in 2009. Hide Caption 24 of 37 Photos: Donald Trump's rise Trump poses with Miss Universe contestants in 2011. Trump had been executive producer of the Miss Universe, Miss USA and Miss Teen USA pageants since 1996. Hide Caption 25 of 37 Photos: Donald Trump's rise In 2012, Trump announces his endorsement of Republican presidential candidate Mitt Romney. Hide Caption 26 of 37 Photos: Donald Trump's rise Trump speaks in Sarasota, Florida, after accepting the Statesman of the Year Award at the Sarasota GOP dinner in August 2012. It was shortly before the Republican National Convention in nearby Tampa. Hide Caption 27 of 37 Photos: Donald Trump's rise Trump appears on stage with singer Nick Jonas and television personality Giuliana Rancic during the 2013 Miss USA pageant. Hide Caption 28 of 37 Photos: Donald Trump's rise In June 2015, during a speech from Trump Tower, Trump announced that he was running for President. He said he would give up "The Apprentice" to run. Hide Caption 29 of 37 Photos: Donald Trump's rise Trump -- flanked by U.S. Sens. Marco Rubio, left, and Ted Cruz -- speaks during a CNN debate in Miami on March 10. Trump dominated the GOP primaries and emerged as the presumptive nominee in May. Hide Caption 30 of 37 Photos: Donald Trump's rise The Trump family poses for a photo in New York in April. Hide Caption 31 of 37 Photos: Donald Trump's rise Trump speaks during a campaign event in Evansville, Indiana, on April 28. After Trump won the Indiana primary, his last two competitors dropped out of the GOP race. Hide Caption 32 of 37 Photos: Donald Trump's rise Trump delivers a speech at the Republican National Convention in July, accepting the party's nomination for President. "I have had a truly great life in business," he said. "But now, my sole and exclusive mission is to go to work for our country -- to go to work for you. It's time to deliver a victory for the American people." Hide Caption 33 of 37 Photos: Donald Trump's rise Trump faces Democratic nominee Hillary Clinton in the first presidential debate, which took place in Hempstead, New York, in September. Hide Caption 34 of 37 Photos: Donald Trump's rise Trump apologizes in a video, posted to his Twitter account in October, for vulgar and sexually aggressive remarks he made a decade ago regarding women. "I said it, I was wrong and I apologize," Trump said, referring to lewd comments he made during a previously unaired taping of "Access Hollywood." Multiple Republican leaders rescinded their endorsements of Trump after the footage was released. Hide Caption 35 of 37 Photos: Donald Trump's rise Trump walks on stage with his family after he was declared the election winner on November 9. "Ours was not a campaign, but rather, an incredible and great movement," he told his supporters in New York. Hide Caption 36 of 37 Photos: Donald Trump's rise Trump is joined by his family as he is sworn in as President on January 20. Hide Caption 37 of 37

He will need to win Ohio, North Carolina and Florida, where he is locked in close races with Clinton, just to give him a chance to make the near-perfect run through the remaining swing states that he needs to capture the presidency.

Democrats are particularly encouraged by indications of a surge of Hispanic voters in early voting in Florida and Nevada. But there also are warning signs for Clinton, with African-Americans not as large a proportion of the early-voting electorate as they were for Obama in 2008 and 2012.

CNN's most recent electoral map shows Clinton is projected to win 268 electoral votes from states that are solidly blue or leaning in her direction. Trump has 204 votes from states that are solidly in his column or leaning that way. A candidate needs 270 electoral votes to win the White House.

In the latest CNN Poll of Polls data in the swing states, Clinton leads 45% to 43% in North Carolina, the rivals are tied at 45% in Florida and Clinton leads by five points in Pennsylvania, a state Trump hopes to turn red.

In New Hampshire, where the race moved toward Trump in the last week, Clinton is still up up 44% to 41%. New Hampshire only has four electoral votes, but Trump's path to 270 is so difficult that votes from smaller states could still be crucial for him.

The presidential election is not the only close race that will wrap up on Tuesday. Democrats are battling to grab back the Senate from Republicans. The GOP, meanwhile, is expected to hold onto the House of Representatives, but likely with a reduced majority.

Speaker Paul Ryan said Monday that he would run again for the top job, despite reports in recent days that he may opt out or that more radical members of his restive caucus could try to oust him, after deeming him insufficiently supportive of Trump.

"I am going to stay -- you know why? Because I moved our majority to put out a very specific and coherent agenda. We have it, we're running on it," Ryan said on the Charlie Sykes radio show.

Asked who would win the presidential race, Ryan said he genuinely did not know, because "it is such a weird election, such a volatile election."