Venezuelan President Hugo Chavez's allies have won a majority in Venezuela's state elections.
But the opposition has made important gains, winning two of the most populous states and the mayor's post in Caracas.
Venezuela's electoral agency says with more than 95 percent of votes counted, opposition candidates won at least three states, while Chavez's allies had won 17 in Sunday's vote.
Election chief Tibisay Lucena said the opposition won in the two most populous states " Miranda and Zulia, as well as Nueva Esparta.
The Caracas mayor's office also shifts to the opposition.
Chavez's brother, Adan, won the governor's race in the president's home state of Barinas.
The results of two states were too close to call.