Paraguay's senate has voted to remove President Fernando Lugo from office in an impeachment trial that plunged the South American country into a crisis.
After a five-hour trial on Friday, 39 senators voted to dismiss Lugo, while four senators voted against and two were absent. Based on the decision, Lugo is to be replaced by Vice President Federico Franco of the Authentic Radical Liberal Party.
Crowds of pro-Lugo protesters took to the streets condemning the impeachment trial and expressing support for the president. Police in anti-riot gear drove them back on horseback and using water cannon.
Paraguay's lower house of Congress voted to impeach Lugo on Thursday. The senate tried him on five charges of malfeasance in office, including an alleged role in a deadly confrontation between police and landless farmers
that left 17 dead.
Nicolas Maduro, Venezuela's foreign minister, who traveled to Paraguay ahead of the vote as part of a delegation from the UNASUR regional bloc, denounced it as a "new type of coup".
Lugo decided not to attend the trial, instead watching on television from the presidential palace while his lawyers spoke on his behalf.
The senate rejected a request by his lawyers for a period of 18 days to prepare their arguments. The senate's president, Jorge Oviedo, said there were no grounds for such a request.
Lugo was elected four years ago on promises of helping the South American country's poor, but his more moderate government allies have increasingly turned against him in recent years.
Lugo's impeachment trial was triggered in part by an attempt by police to evict about 150 farmers from a remote, 2,000-hectare forest reserve, which is part of a huge estate owned by a politician.
Advocates for the farmers say the landowner used political influence to get the land from the state decades ago, and say it should have been put to use for land reform.
Lugo has expressed sorrow at the confrontation and accepted the resignations of his interior minister and his chief of police.
The president was also tried on four other accusations.
They include allegations that he improperly allowed leftist parties to hold a political meeting in an army base in 2009; that he allowed about 3,000 squatters to illegally invade a large Brazilian-owned soybean farm; that his government failed to capture members of a guerrilla group, the Paraguayan People's Army, which carries out extortion kidnappings and occasional attacks on police; and that he signed an international protocol without properly submitting it to Congress for
The trial marked appeared to be a dramatic demise for the once-popular leader who stepped down as the Catholic "bishop of the poor'' to run for the presidency amid a leftward swing in South America.
Lugo's relationship with Franco and the moderate Authentic Radical Liberal Party quickly deteriorated after he was elected in 2008 with their support.
His partners were upset after he gave a majority of Cabinet ministry posts to leftist allies, and handed a minority to the moderates.
Conflicts also developed as leftist groups of landless farmers began to invade large soybean and cattle farms, trying to force the government to expropriate them.
Lugo's government did not have enough funds to pay compensation to farm owners, and the land seizures upset politicians who previously supported the president.