An Iraqi traffic policeman in 2007 inspects a car destroyed by a Blackwater security detail in al-Nisoor Square in Baghdad, Iraq. After years of delays, four former guards from the security firm Blackwater Worldwide are facing trial in the killings of 14 Iraqi civilians and the wounding of 18 others in bloodshed that inflamed anti-American sentiment around the globe. Whether the shootings were self-defense or an unprovoked attack, the carnage of Sept. 16, 2007 was seen by critics of the George W. Bush administration as an illustration of a war gone horribly wrong. A trial in the nearly 7-year-old case is scheduled to begin with jury selection on Wednesday, barring last-minute legal developments.

WASHINGTON — After years of delays, four former guards from the security firm Blackwater Worldwide are facing trial in the killings of 14 Iraqi civilians and the wounding of 18 others in bloodshed that inflamed anti-American sentiment around the globe.

Whether the shootings were self-defense or an unprovoked attack, the carnage of Sept. 16, 2007 was seen by critics of the George W. Bush administration as an illustration of a war gone horribly wrong.

A trial in the nearly 7-year-old case is scheduled to begin with jury selection on Wednesday, barring last-minute legal developments. Prosecutors plan to call dozens of Iraqis to testify in what the Justice Department says is likely to be the largest group of foreign witnesses ever to travel to the U.S. to participate in a criminal trial.

The violence at the Nisoor Square traffic circle in downtown Baghdad was the darkest episode of contractor violence during the war in Iraq, becoming one more diplomatic disaster in a war that had many. Iraqi officials, who wanted the guards tried in a local court, were outraged.

In the trial, defense lawyers will focus on the guards’ state of mind in a city that was a battleground.

Car bombs and insurgents were daily perils for the Blackwater teams. As part of its work with the State Department, Blackwater had a team of 15 intelligence analysts who produced daily threat updates, colored maps of a city riddled with bomb blasts.

“The core disputed issue in this prosecution is self-defense — whether the defendants believed that deadly force was necessary to defend themselves and their teammates from an insurgent attack, and whether that belief was objectively reasonable,” lawyers for the guards said in court filings.

Reasonableness shouldn’t be judged on “hindsight analysis in a courtroom seven years and thousands of miles removed from the event,” the lawyers argue in the filings.

In the aftermath of the shootings, Blackwater Worldwide provided the government with photos of the guards’ vehicles pocked and streaked with bullet marks.

On Capitol Hill, one theme in politically tinged congressional hearings was that hiring large numbers of security guards, and letting them operate outside the military chain of command in a war zone, was a recipe for disaster.

Blackwater founder Erik Prince declared: “I believe we acted appropriately at all times.” The Nisoor Square shootings spelled the death knell for his company. Formerly known as Blackwater Worldwide, the company is under new ownership, is based in Virginia and Prince is no longer affiliated with it. The company was sold to a group of investors who changed the name to Academi.

The very presence of security guards in Iraq is touchy. Lawyers for the guards had asked that current or former members of the military not wear uniforms when they testify in the case, a request the court denied. The guards’ lawyers argued that distinctions between contractors and uniformed military had become highly politicized.

In 2009, U.S. District Judge Ricardo Urbina dismissed the case against the Blackwater guards. From the Iraqi government’s perspective, the dismissal was an example of Americans acting above the law. Urbina said government lawyers ignored the advice of senior Justice Department officials by building the criminal case on sworn statements of the guards given under a grant of immunity — meaning the guards’ own statements could not be used against them.