The balloting, which carried a measure of suspense not seen in the party in decades, revealed that Democrats have yet to heal the wounds from last year’s presidential primary campaign. Mr. Perez, buoyed by activists most loyal to former President Barack Obama and Hillary Clinton, won with 235 votes out of 435 cast on the second ballot.
Mr. Ellison, who was lifted primarily by the liberal enthusiasts of Senator Bernie Sanders of Vermont, captured the remaining 200 votes. But that was only after he had pushed the voting to a second round after Mr. Perez fell a single vote short of winning on the first ballot.
After Mr. Perez’s victory was announced, Mr. Ellison’s supporters exploded in anger and drowned out the interim chairwoman, Donna Brazile, with a chant of “Party for the people, not big money!” When Mr. Perez was able to speak, he immediately called for Mr. Ellison to be named deputy chairman, delighting Mr. Ellison’s supporters.