(CNN) -- Ousted ex-Honduran President Manuel Zelaya inked an accord Sunday with the country's current president that will allow him to return to Honduras after almost two years in exile, officials said. The deal, which was brokered by the Colombian and Venezuelan governments, was signed in Cartagena, Colombia, by Zelaya and Honduran President Porfirio Lobo. It allows Zelaya and his allies to return to Honduras and helps clear the way for the country to rejoin the Organization of American States. Zelaya and his supporters will also be permitted to participate in Honduran politics. Zelaya was overthrown in a military-led coup June 28, 2009, and flown into exile. He sneaked back into Honduras in September of that year and got refuge in the Brazilian Embassy, where he remained until Lobo arranged for Zelaya to get safe passage out of the country.
@highlight
The deal helps clear the way for Honduras to rejoin the Organization of American States
@highlight
It was brokered by the Colombian and Venezuelan governments and signed in Colombia
@highlight
The accord also allows allies of ousted ex-President Manuel Zelaya to return to Honduras
@highlight
Zelaya was deposed in a coup nearly two years ago
@placeholder has been excluded from the regional body since the coup, in part because Zelaya had not been allowed to return home without fear of prosecution.