Sao Paulo: A former Marxist guerrilla who was tortured and imprisoned during Brazil's long dictatorship was elected on Sunday as president of Latin America's biggest nation, a country in the midst of an economic and political rise.
A statement from the Supreme Electoral Court, which oversees elections, said governing party candidate Dilma Rousseff won the election. When she takes office on January 1, she will be Brazil's first female leader.
With 99 per cent of the ballots counted, Rousseff had 55.6 per cent compared to 44.4 per cent for her centrist rival, Jose Serra, the electoral court said.
"I'm very happy. I want to thank all Brazilians for this moment and I promise to honor the trust they have shown me," Rousseff told reporters who swarmed a car carrying her in Brasilia, her first public words as president-elect.
Rousseff, the hand-chosen candidate of wildly popular President Luiz Inacio Lula da Silva, won by cementing her image to Silva's, whose policies she promised to continue.
She will lead a nation on the rise, a country that will host the 2014 World Cup and that is expected to be the globe's fifth-largest economy by the time it hosts the 2016 Summer Olympics. It has also recently discovered huge oil reserves off its coast.
Rousseff was already speaking like a president-elect before the result was announced.
"Starting tomorrow we begin a new stage of democracy," Rousseff, 62, said in the southern city of Porto Alegre, where she cast her vote. "I will rule for everyone, speak with all Brazilians, without exception."
Silva used his 80 per cent approval ratings to campaign incessantly for Rousseff, his former chief of staff and political protege. She never has held elected office and lacks the charisma that transformed Silva from a one-time shoeshine boy into one of the globe's most popular leaders.
Silva was barred by the constitution from running for a third consecutive four-year term.
He has batted down chatter in Brazil's press that he is setting himself up for a new run at the presidency in 2014, which would be legal.
Despite Rousseff's win, many voters don't want "Lula," as he is popularly known, to go away.
"If Lula ran for president 10 times, I would vote for him 10 times," said Marisa Santos, a 43-year-old selling her homemade jewelry on a Sao Paulo street. "I'm voting for Dilma, of course, but the truth is it will still be Lula who will lead us."
Within 20 minutes of Rousseff's victory being announced, her supporters began streaming onto a main avenue in Sao Paulo, where eight years ago a huge gathering celebrated Silva's win, the first time the Workers Party took the presidency.
Police blocked off the road and workers were already constructing a stage for a party expected to last the entire night.
"We've been waiting for this dream for so long," said Sandra Martins, a 40-year-old school teacher who was dressed in Worker Party red and waving a large Rousseff campaign flag. "It's going to be the third term for Lula - except this time represented by a woman."
Silva entered office with a background as a leftist labour leader, but he governed from a moderate perspective.
Under his leadership, the economy grew strongly and Brazil weathered the global financial crisis better than most nations.
He is loved within Brazil by the legions of poor, who consider the nation's first working-class president one of their own.
His social programs and orthodox economic policies have helped lift 20 million people out of poverty and thrust another 29 million into the middle class.
Serra is a 68-year-old former governor of Sao Paulo state and one-time health minister who was badly beaten by Silva in the 2002 presidential election.
"I voted for Dilma because she is a fighter," said Estevam Sanches, a 43-year-old pizza parlor owner in Sao Paulo. "What we need is a fighter in the presidency to continue, as she says she will, with Lula's efforts to eradicate poverty and strengthen the economy."
Rousseff was a key player in an armed militant group that resisted Brazil's military dictatorship - and was imprisoned and tortured for it.
She is a cancer survivor and a former minister of energy and chief of staff to Silva. She possesses a management style that earned her the moniker "Iron Lady" - a name she detests.
She is the daughter of a Bulgarian immigrant father, a lawyer who died when she was 14, and a Brazilian mother who was a schoolteacher. Her past points to an early political awakening.
In 1967, as a 19-year-old economics student, she joined a militant political group opposing the dictatorship. For three years she helped lead guerrilla organizations, instructed comrades on Marxist theory and wrote for an underground newspaper.
Rousseff denies carrying out any acts of violence during this period, says she opposed such action and notes she was never accused by the military regime of violent acts.
After three years underground, Rousseff was captured in 1970 by Brazil's military police and was considered a big enough catch that a military prosecutor labeled her the "Joan of Arc" of the guerrilla movement.
She was tossed into the Tiradentes prison where she was submitted to brutal torture.
After being released, she moved to southern Brazil in 1973, where she reunited with her now former husband, Carlos Araujo, who was also an imprisoned militant.
She gave birth to a daughter and finished an economics degree. As Brazil's dictatorship began to loosen its grip, Rousseff became more politically involved and campaigned to get her husband elected to the state congress in 1982.
After holding appointed positions in city and state governments, Rousseff served for two years as the nation's energy minister after Silva took office in 2003. She became his chief of staff in 2005, a position she held until resigning earlier this year to campaign.
Rousseff says her political thinking has evolved drastically - from Marxism to pragmatic capitalism - but she remains proud of her radical roots.
"We fought and participated in a dream to build a better Brazil," she said in an interview published in the newspaper Folha de S. Paulo in 2005, one of the rare times she has spoken in detail about her militancy and torture endured.
"We learned a lot. We did a lot of nonsense, but that is not what characterises us. What characterises us is to have dared to want a better country."