Hillary Clinton vowed on Wednesday to never send United States ground troops into Iraq and Syria to fight the Islamic State (ISIS).
The pledge came during NBC News' "commander-in-chief" forum, where the Democratic presidential nominee said, "We are not putting ground troops into Iraq ever again and we're not putting ground troops into Syria."
Clinton added "We're going to defeat ISIS without committing American ground troops, so those are the kinds of decisions we have to make on a case-by-case basis."
Click through images of Hillary Clinton heated debate moments:
Hillary Clinton heated debate moments
Hillary Clinton heated debate moments
US Democratic presidential candidates Senator Barack Obama (D-IL) (L) and Senator Hillary Clinton (D-NY) shake hands at the conclusion of the Texas Democratic Party's presidential candidates debate at the University of Texas at Austin in Austin, Texas, February 21, 2008. REUTERS/Jessica Rinaldi (UNITED STATES) US PRESIDENTIAL ELECTION CAMPAIGN 2008 (USA)
Democratic U.S. presidential candidate Hillary Clinton (L) speaks as Senator Bernie Sanders reacts during a Democratic debate hosted by CNN and New York One at the Brooklyn Navy Yard in New York April 14, 2016. REUTERS/Lucas Jackson (TPX IMAGES OF THE DAY)
U.S. Sen. Hillary Clinton (D-NY) listens as Senator Barack Obama (D-IL) speaks during the CNN/Nevada Democratic Party debate at the University of Nevada Las Vegas (UNLV) in Las Vegas, Nevada November 15, 2007. REUTERS/Steve Marcus (UNITED STATES)
U.S. Senator Hillary Clinton (D-NY) looks out into the crowd before the start of the democratic presidential debate at Dartmouth College in Hanover, New Hampshire September 26, 2007. REUTERS/Brian Snyder (UNITED STATES)
Democratic U.S. presidential candidate Hillary Clinton gestures at rival Bernie Sanders as she speaks during the Democratic U.S. presidential candidates' debate in Flint, Michigan, March 6, 2016. REUTERS/Jim Young
Hillary Rodham Clinton (right) speaks during the first New York Senatorial Debate as Representative Rick Lazio (R-NY) (left) watches at WNED public television station in Buffalo, New York, September 13, 2000. Clinton and Lazio are running against each other for the Senate seat from the State of New York being vacated by Senator Daniel Patrick Moynihan.
Democratic U.S. presidential candidate and U.S. Senator Bernie Sanders (L) speaks as former Secretary of State Hillary Clinton looks on as they discuss issues during the Democratic presidential candidates debate sponsored by MSNBC at the University of New Hampshire in Durham, New Hampshire, February 4, 2016. REUTERS/Mike Segar
U.S. Senator Hillary Rodham Clinton (L) and her Republican challenger John Spencer prepare for their debate in New York October 22, 2006. REUTERS/Keith Bedford (UNITED STATES)
Democratic U.S. presidential candidate former Secretary of State Hillary Clinton shares a laugh with fellow candidate and Senator Bernie Sanders at the conclusion of the second official 2016 U.S. Democratic presidential candidates debate in Des Moines, Iowa, November 14, 2015. REUTERS/Jim Young (TPX IMAGES OF THE DAY)
US Democratic presidential candidate Senator Hillary Clinton (D-NY) looks on as Senator Barack Obama (D-IL) speaks during the last debate before the Ohio primary in Cleveland, Ohio, February 26, 2008. REUTERS/Aaron Josefczyk (UNITED STATES) US PRESIDENTIAL ELECTION CAMPAIGN 2008 (USA)
US Democratic presidential candidates Senator Hillary Clinton (D-NY) and Senator Barack Obama (D-IL) square off in the last debate before the Ohio primary in Cleveland, Ohio February 26, 2008. REUTERS/Matt Sullivan (UNITED STATES) US PRESIDENTIAL ELECTION CAMPAIGN 2008 (USA)
Democratic presidential candidate US Senator Hillary Clinton (D-NY) gestures as she answers a question during the MSNBC/Nevada Democratic Party presidential candidates debate in Las Vegas January 15, 2008. REUTERS/Steve Marcus (UNITED STATES) US PRESIDENTIAL ELECTION CAMPAIGN 2008 (USA)
Democratic presidential candidates Senator Barack Obama (D-IL) speaks as Senator Hillary Clinton (D-NY) listens during the MSNBC/Nevada Democratic Party Presidential Candidate's debate in Las Vegas January 15, 2008. REUTERS/Steve Marcus (UNITED STATES) US PRESIDENTIAL ELECTION CAMPAIGN 2008 (USA)
Democratic presidential candidates Senator Barack Obama (D-IL) (L) and Senator Hillary Rodham Clinton (D-NY) wait before the South Carolina Democratic party's presidential candidates debate at South Carolina State University in Orangeburg, South Carolina, April 26, 2007. REUTERS/Jim Bourg (UNITED STATES)
Republican Senate candidate Rick Lazio (L) and Democratic Senate candidate Hillary Rodham Clinton (R) pose for photogarphers before their debate in a television studio in New York on October 27, 2000. Lazio, a Long Island congressman, and the first lady are vying for the seat held by retiring Democratic Senator Daniel Patrick Moynihan. NBC newsman Gabe Pressman (C) moderated the taped debate.
Discover More Like This
BACK TO SLIDE
Clinton also said she regretted her decision as a U.S. senator from New York to vote in favor of the 2003 Iraq war and said Trump had been in favor of it as well. Trump has condemned the war during his presidential campaign and said he would avoid lengthy conflicts in the Middle East.
On the U.S. intervention in Libya in 2011, Clinton rejected Trump's criticism of her support for the effort as secretary of state.
"Permitting there to be an ongoing civil war in Libya would be as threatening and as dangerous as what we are seeing in Syria," she said.
She said U.S. policies under her leadership at the State Department had helped promote security.
"We made the world safer," she said.
The Democratic presidential nominee also defended her handling of classified information from a private email server at a televised "commander-in-chief" forum that paired her with Republican Donald Trump in separate appearances.
Clinton said her long experience in government as a U.S. senator and secretary of state made her uniquely qualified to serve as president. She said she had "an absolute rock steadiness" to be able to make tough decisions.
But moderator Matt Lauer doggedly pressed her about her handling of emails from a private server as President Barack Obama's first-term secretary of state. The issue has raised questions about whether she can be trusted to serve as president.
Clinton said none of the emails she sent or received were marked top secret, secret or classified, the usual way such material is identified. FBI Director James Comey had said she was "extremely careless" in her handling of classified material but decided not to prosecute her.
"I did exactly what I should have done and I take it very seriously, always have, always will,' she said.
Appearing on the second half of the hour-long show, Trump quickly abandoned Lauer's entreaties to avoid attacking his opponent and focus on what he would do if elected president on Nov. 8.
She's been there for 30 years," Trump said. "We need change, and we need it fast."
The event at the Intrepid Air and Sea Museum in New York offered a prelude of how they will deal with questions on national security issues in their three upcoming presidential debates.
The event brought together the meticulously prepared Clinton and Trump, a New York businessman whose brash, freewheeling style has allowed him to dominate the headlines for months.
(Additional reporting by Amanda Becker and Alana Wise in Washington and Gina Cherelus and Jonathan Allen in New York and AOL.com; Editing by Alistair Bell and Peter Cooney)