MOSCOW — Aleksei V. Ulyukayev, a former economy minister in Russia who had clashed with a close ally of President Vladimir V. Putin, was convicted on Friday of soliciting a $2 million bribe, in a case that pulled back the curtain on Kremlin infighting.
Mr. Ulyukayev and his supporters insisted the evidence against him was concocted to eliminate a critic of growing state dominance in the oil industry. But the judge, Larisa Semenova, rejected the arguments that the former minister had been framed and sided with prosectors, who called it an open-and-shut case of corruption.
Judge Semenova sentenced Mr. Ulyukayev, who had been locked in a struggle with Igor I. Sechin, the director of the state oil company Rosneft, over how to revive the swooning Russian economy, to eight years in a penal colony and a fine of 130 million rubles, or $2.2 million.
The punishment was less than the 10-year sentence and 500-million ruble fine sought by prosecutors. Mr. Ulyukayev’s lawyers said they would appeal.
Russia’s smoothly executed military operations in Ukraine and Syria, and allegations of election meddling in the United States, have lent Mr. Putin an air of mystery and monolithic power, but the case against Mr. Ulyukayev shed light on the jockeying for position among members of the president’s inner circle.
Mr. Ulyukayev had been a prominent member of a liberal wing in the Russian government, and he was accused of seeking a huge bribe from Mr. Sechin in exchange for acquiescing to a major oil deal he had initially opposed.
Mr. Sechin, a former military intelligence officer and longtime associate of Mr. Putin, has argued for Russia to return to a state-dominated economy, particularly in the oil industry. Mr. Ulyukayev, a protégé of Yegor Gaidar, the architect of post-Soviet privatizations, is an advocate of free-market economics.
Mr. Sechin accused Mr. Ulyukayev of seeking the bribe in exchange for dropping objections to the state oil company’s acquisition of a recently nationalized midsize oil producer, Bashneft.
The sale was billed as a privatization, but Mr. Ulyukayev contended that privatization was impossible if the buyer was a state company.
Mr. Sechin said the former minister had solicited the bribe in October 2016, but only with a gesture: During a game of pool, he said, Mr. Ulyukayev held up two fingers, signaling that his price was $2 million.
A few weeks after the pool game, at the oil company headquarters, secret listening devices and a concealed video camera recorded Mr. Sechin offering Mr. Ulyukayev a gift basket that contained artisanal sausages made from wild game and a hefty brown bag. Mr. Ulyukayev said he believed the bag held bottles of wine; in fact, it contained $2 million in blocks of $100 bills, weighing about 45 pounds.
Although the court ruled in his favor, Mr. Sechin did not emerge unscathed. Over Mr. Sechin’s objections, the hearings were held in open session, which exposed details of the sting operation and the dealings of the Kremlin elite, like the common practice of giving lavish gifts.
At his annual year-end news conference on Thursday, Mr. Putin chastised Mr. Sechin for ignoring a summons to testify at court. “Sechin should have come to court,” Putin said. “What is the problem anyway?”
Mr. Putin did offer a mild defense of Mr. Sechin, saying that no law had been broken when he refused to testify, despite critics who argued otherwise.
Igor M. Bunin, the president of the Center for Political Technologies, said in a telephone interview that Mr. Ulyukayev’s undoing was that he had fallen from favor with Mr. Putin, in part for delivering bad economic news.
“It’s one thing to support the liberal course, another to fail to create a good personal relationship with Putin,” Mr. Bunin said. Earlier in his career, for example, Mr. Ulyukayev, then deputy governor of the central bank, had been passed over for a promotion to bank governor after pushing back against Kremlin pressure to spur economic growth by lowering interest rates, saying such a move risked sparking inflation.
In his closing statement earlier this month, Mr. Ulyukayev protested his innocence and said the court proceedings had evoked the era of show trials in Russia under Joseph Stalin. “The evidence shows that I’ve been targeted in a monstrous provocation,” he said.
Speaking of Mr. Sechin’s refusal to testify, Mr. Ulyukayev said the oil executive had vanished and “only the smell of sulfur in the air was left,” a reference to the “The Master and Margarita,” the riotous Russian novel by Mikhail Bulgakov about the devil appearing in Stalin’s Moscow.
Anybody could fall victim to a fabricated criminal case, Mr. Ulyukayev said. “Now this is very easy: A bag, a basket, a poorly filmed video, three clicks and it is ready,” he said.