The United States and Venezuela have agreed to strengthen military cooperation, including joint training, intelligence sharing, military equipment and border security. US Defense Secretary Pete Hegseth announced the agreement during an unannounced visit to Caracas on Wednesday, saying it would help counter drug trafficking and armed groups and improve regional security.

Venezuela’s interim President Delcy Rodriguez welcomed the agreement, saying it could improve troop training, modernise equipment and provide access to new technologies. Her government said the cooperation must respect Venezuela’s sovereignty and constitution. The full terms, including how any joint operations would work, have not been made public.

Hegseth met Rodriguez and Defence Minister Gustavo Gonzalez Lopez in Caracas. Rodriguez called the visit an extraordinary step in relations between the two countries. Venezuela said its armed forces, the Bolivarian National Armed Forces (FANB), would benefit from the agreement.

Political analyst Carlos Pina said the timing may be connected to the Democrats’ midterm election victory and their stated intention to scrutinise US policy towards Venezuela. He also linked the visit to a recent attempt to impeach Hegseth, saying it could help the administration defend its Venezuela policy before Democrats take control of Congress in January.

The House of Representatives voted 211-204 on November 10 against impeaching Hegseth for now. A resolution introduced by Republican Thomas Massie cited eight articles of impeachment, including matters related to the US-Israel war on Iran, strikes on suspected drug-trafficking boats and the January operation that removed then-President Nicolas Maduro from power.

Massie accused Hegseth of ordering an act of war against Venezuela without congressional authorisation. In the resolution, he said: “Secretary Hegseth executed unlawful orders effecting the removal of the President of a sovereign nation, placed boots on the ground, conducted preparatory bombardments, inflicted substantial casualties, and subsequently caused regime change, each of which constitutes acts of war,”

Analysts say Rodriguez may also be seeking to preserve her government’s position under pressure from Washington. Phil Gunson, a senior analyst at the International Crisis Group, told Al Jazeera: “The simple answer is that they want to remain in power as long as possible.” He said Rodriguez’s government had been warned it could face the same fate as Maduro, “or worse,” if it refused to cooperate.

Gunson said Washington has financial leverage because it controls most of Venezuela’s foreign earnings from oil sales. Since Maduro’s ousting in January, oil revenue has gone into US-controlled accounts, with Washington supervising the release of funds to Caracas.

A Department of State report released on November 12 said more than $12bn from Venezuelan oil and other natural resources passed through the accounts between January and September. The US government said nearly 99 percent had been disbursed, mostly to individuals and businesses in Venezuela through commercial banks. Washington’s role in approving releases could give the Trump administration leverage over Rodriguez’s government.

Pina described Caracas’s approach as “a calculation of survival”. He said Rodriguez was willing to yield in some areas as long as her government’s hold on power was not threatened, and suggested she was seeking time as Democrats prepare to take control of Congress in January.

Analysts said the agreement’s effects on Venezuela’s armed forces remain uncertain. Gunson questioned whether Washington would seek to reform security forces whose leaders it has accused of drug trafficking, human rights abuses and collaboration with Colombian guerrillas and other armed groups. He said the military was not currently in a position to resist US influence, though some senior officers might try to obstruct changes if they feared prosecution or losing their positions.

Gonzalez Lopez, Venezuela’s defence minister, said the relationship followed the “painful events of January 3”, when US forces removed Maduro from power. He said cooperation would comply with Venezuela’s constitution and respect its “sovereignty, independence and territorial integrity”. He added that the armed forces would retain control of their leadership, command and operations.

Pina said the agreement appeared to focus on limited cooperation against armed groups and drug trafficking networks along the Venezuela-Colombia border. He said joint operations could include air raids, but believed Venezuela’s military would resist granting the US a larger role. He also argued that Washington wanted a stronger military presence to maintain influence over Venezuela’s political transition.

The agreement could affect neighbouring Colombia, where armed groups, including the National Liberation Army (ELN), operate on both sides of the border. Pina said joint operations could weaken the groups and limit their cross-border activity.

The New York Times reported on Wednesday that Colombian President Abelardo de la Espriella had rejected a US proposal for joint military operations in Colombia. De La Espriella denied the report, saying his country wanted closer military cooperation with Washington but that foreign troops would need congressional approval. Hegseth also rejected the report, calling it “totally false”.

Gunson said Trump viewed Venezuela as a major success and a model for US relations with Latin America, but suggested the midterm results could affect how governments in the region respond to Washington. Pina said the agreement could raise concerns in countries including Mexico about the prospect of US military operations on their territory. He questioned whether the deal marked a lasting change in US policy or was mainly a political response to the effort to impeach Hegseth.