Zelaya was violating his country's constitution with his referendum that would have, Chavez-style, repealed term limits on the presidency. The Honduras Supreme Court ruled the referendum illegal, and the military refused to distribute the ballots. Instead of backing down, Zelaya fired the head of the military, which precipitated the ouster.