BOGOTA, Colombia — The testimony is searing. “They tied me to a tree,” said one victim of Colombia’s guerrillas. “They put us in a cage,” said another. “I was kidnapped for four years.”

“Until then, I had not heard of ‘mass graves,’ ” said a victim of the military. “Finally I understand that those in charge of protecting civilians killed thousands of Colombians.”

After decades of civil war, Colombia has created a historic postwar court designed to reveal the facts of a conflict that defined the nation for generations, morphing into the longest-running war in the Americas.

Thousands have testified. Wide-ranging investigations are underway. The first indictments were issued in January — and the first pleas are expected in April. Perpetrators will be punished, with those who admit responsibility receiving lesser, “restorative” sentences, like house arrest or remaining free while doing hard physical labor. Those who refuse to do so will face trial and the possibility of decades in prison.

The goal of the court, which began its work in 2018, is to give the country a common narrative about the conflict, one that will allow Colombians to move forward, together. The success of the court, called the Special Jurisdiction for Peace, could help change the trajectory of a nation that has been at war for much of its history, with one conflict rolling almost immediately into the next.

Its failure could mean the repetition of that cycle.

“We have a window — a generational opportunity — to leave behind the insane violence we have lived in all our lives,” said Ingrid Betancourt, a former presidential candidate who was kidnapped and held by guerrillas, sometimes in chains, for more than six years. “I would like us to be able to open that window and let the light in.”

Colombia’s most recent conflicts date to the 1960s, when a leftist rebel group called the Revolutionary Armed Forces of Colombia, or FARC, launched an insurgency meant to remake a sharply unequal society.

The war grew into a complex battle among left-wing guerrilla groups, right-wing paramilitaries, the military, drug cartels and the United States, which supplied and advised the military.

For years, everyday life was marked by bombings, kidnappings and assassinations. At least 220,000 died, and more than 5 million were displaced. The war ended in 2016, when the FARC and the government signed a peace deal that included the creation of the postwar court.

But if the goal of the court is to dig up buried truths, it is clear that this search is also exhuming and exacerbating long-standing divisions — and that the road to a common narrative, if one can be found, will be lined with conflict.

Some see the court as their best chance to find answers about lost loved ones and the country’s best hope for peace; others are angered that assassins and kidnappers will not receive prison sentences; still others simply dismiss the court’s findings, saying the institution is biased in favor of the former guerrillas.

The court’s most prominent critic is former President Alvaro Uribe, who presided over some of the final years of the war and who remains the country’s most divisive and influential political figure. A recent report by the court implicates the military in more than 6,400 civilian deaths from 2002 to 2008, during his presidency.

Uribe responded to the report by calling it an “attack” with “only one purpose”: “to discredit me personally.”

The court is held in an imposing black building on a main avenue in Colombia’s capital, Bogota. Some testimony is public and has been streamed on social media or released in public documents, offering a window into decades of suffering. To protect participants’ safety, much of it takes place behind closed doors.

So far, the court’s findings have been explosive, revealing victim counts far higher than previously confirmed and hard-hitting accusations that many skeptics did not expect.

In January, magistrates issued their first indictment, accusing eight top FARC leaders of orchestrating a kidnapping-for-ransom operation that lasted decades and resulted in more than 20,000 victims, many of them civilians, some of whom were raped or murdered. The kidnappings were used to fund the insurgency, said the court, and amounts to crimes against humanity.

The accused former FARC leaders have indicated that they will admit guilt. If they do, they will receive nonprison sentences, which could include up to eight years digging up old land mines or tracking down bodies. If they do not admit guilt, they will face a trial and the possibility of decades behind bars.

They have until late April to reply to the court.

“We are assuming collective responsibility,” said Julian Gallo, who is among the indicted leaders.

“These were practices that in some form delegitimized our fight,” he went on. “What we have asked for is forgiveness.”

Some see the charges and the defendants’ response as signs that the court’s decisions will be taken seriously, enabling it to establish that common narrative.

Hector Angulo’s parents, a metalworker and housewife, were kidnapped by the FARC in 2000. He sold his home and paid a ransom for their release, but the guerrillas never returned his parents. He has spent two decades searching for their bodies, he said.

He is not sure he can ever forgive, he said, “because the pain one feels for a family member is irreparable.” But he supports the court’s work, he added, because “it’s what we have.”

Ximena Ochoa opposes the court. Her mother was kidnapped by the rebels in 1990, held for four terrible months and released after her family paid a hefty ransom. She believes that the court is a distraction designed to gloss over the FARC’s unresolved crimes. The guerrillas, for example, have yet to hand over much of their war chest.

The court, she said, will allow the former rebels to admit to some things, an effort to placate the international community by claiming that justice has been served in Colombia.

“This whole transitional justice thing is a hoax,” she said. Of the FARC, she added, “They are never going to tell the whole truth.”

In February, magistrates turned their attention to the crimes of the military, issuing the scathing report that implicated officials in the intentional killing of at least 6,402 civilians when Uribe was in office.

The killings were part of a previously revealed strategy in which Colombian soldiers or their allies lured civilians from their homes with the promise of jobs, then killed them and tried to pass off their deaths as combatant kills. Many of the victims were poor; some were mentally disabled.

The idea was to show that the government was winning the war.