President Hugo Chavez won re-election and a new endorsement of his socialist project Sunday, surviving his closest race yet after a bitter campaign in which the opposition accused him of unfairly using Venezuela's oil wealth and his near total control of state institutions to his advantage.