General Manuel Noriega was a long-time head of the Panamanian military intelligence, and in 1983 he was appointed as commander of the country's National Guard. All that time Noriega maintained close ties with the CIA and carried out important tasks for the US government, according to former CIA Director William Casey. Despite not being the official head of state, Noriega was the de facto ruler of Panama.
General Noriega was actively cooperating with the CIA for many years.
However, as Noriega's relations with the US took a turn for the worse, in 1984 a coup attempt took place in Panama, which the general managed to suppress. Alarmed by the fact that their former agent had gone rogue, the US established a full economic blockade of Panama and started negotiating Noriega's ouster.
The political crisis worsened and in 1989, following a US-backed coup attempt.