Peru's former spymaster was sentenced to 20 years in prison for engineering a deal that sent 10,000 assault rifles to Colombian guerrillas, the harshest verdict yet against the powerbroker behind ex-President Alberto Fujimori's autocratic regime.

Vladimiro Montesinos, 61, appeared impassive as a tribunal of judges on Thursday declared him guilty — closing a nearly three-year trial that has heard testimony resembling a spy thriller with gun buys in Jordan and an arms dealer dubbed the "Merchant of Death."

The court also ordered Montesinos and five co-defendants to pay a fine of $3.1 million among them. The court rejected the prosecution's recommendation that half the money be paid to Colombia's government, state attorney Juan Carlos Portocarrero said. Montesinos told the judges he plans to appeal.

Montesinos is already serving a 15-year term on about a dozen corruption convictions, which under Peruvian law are served concurrently. This latest sentence adds five years to his prison time. Counting time served, he is scheduled for release March 17, 2023 — just before his 78th birthday.

CountryWatch: Peru

He also faces a possible 35-year sentence in another trial for allegedly directing a paramilitary death squad during the first half of Fujimori's 1990-2000 government. Other trials against him are ongoing or have yet to begin.

Montesinos' conviction Thursday involves a case in which men working for him posed as Peruvian military representatives to purchase Soviet-era assault rifles from Jordan that were delivered in 1999 to the leftist Revolutionary Armed Forces of Colombia rebels.

The plot included a stealth Ukrainian flight crew, a French financier and a Lebanese arms dealer known as the "Merchant of Death," the court ruled.

Montesinos — who during the 1990s gained control of Peru's military, the courts, and most media outlets — maintained throughout the trial that he had nothing to do with the arms deal and that he was responsible for uncovering the scheme.

Testimony from Montesinos' 18 co-defendants — most of whom received sentences ranging from six to 15 years — overwhelmingly fingered him as the leader of the plot.

Montesinos' influence permeated a nation already weakened by chronic corruption — until Fujimori's regime collapsed in November 2000 amid a bribery scandal involving his spymaster.

The arms scandal came to light three months earlier when Montesinos made a rare public appearance with Fujimori to announce that Peruvian authorities had dismantled a gunrunning ring led by brothers Jose Luis and Luis Frank Aybar, both Peruvian army veterans.

But their version quickly unraveled under skepticism from Colombian and Jordanian officials.

Montesinos fled Peru but was captured in Venezuela in June 2001. He has since been locked up in the high-security naval prison in Lima's port of Callao, which he helped design for Peru's most notorious guerrilla leaders.

Fujimori, who was not charged in the arms trafficking case, also fled — first to Tokyo, then to Chile, where he remains fighting extradition to his homeland.

Co-defendant Jose Luis Aybar said he helped arrange the deal at Montesinos' behest, but denied knowing the arms were destined for Colombia. He testified he was tortured by Montesinos' intelligence agents, who warned him to take the blame for the illegal arms deal or his family would suffer.

Aybar and his brother were sentenced Thursday to 15 years in jail.

In 1998, the Aybars contacted Miami-based businessman Charles Acelor, a French-born naturalized U.S. citizen, in search of assault rifles.

Acelor, who also received a 15-year sentence, put them in touch with international weapons broker Sarkis Soghanalian, a Turkish-born Lebanese citizen and U.S. resident — whose long career supplying arms to ex-dictators like Nicaragua's Anastasio Somoza and Iraq's Saddam Hussein earned him the nickname "The Merchant of Death."

Soghanalian — one of 15 defendants tried in absentia in the case — has said he personally negotiated the deal with Montesinos, but insisted he believed it was a legal transaction. The court reserved dictating a verdict for him.

Peruvian State Attorney Juan Portocarrero said Peru is trying to extradite Soghanalian from the United States.

The weapons were reportedly bought in three lots and delivered on four flights between March and August 1999 by an Ukraine-registered military surplus cargo jet.

The original plan allegedly had been to sell another 40,000 rifles to the rebels but Jordan canceled the deal when the CIA tipped it off in mid-1999 that the rifles were turning up in the hands of captured Colombian guerrillas.

Click here to go to FOXNews.com's Americas Center.