Luiz InĂ¡cio Lula da Silva was elected was elected president of Brazil in a runoff election that remained tight until its final moments.