Nine months after instructing Alabama’s probate judges to defy federal court orders on same-sex marriage, Roy S. Moore, the chief justice of the Alabama Supreme Court, was suspended on Friday for the remainder of his term for violating the state’s canon of judicial ethics.

It was the second time in his contentious career that Judge Moore, an outspoken conservative, was removed as chief justice, and it followed his most recent star turn in the nation’s culture wars.

The suspension was imposed by the state’s Court of the Judiciary, a nine-member body of selected judges, lawyers and others, which found Judge Moore guilty on six charges. While the court did not take him off the bench entirely, as it did in 2003 after he defied orders to remove a giant Ten Commandments monument from the state judicial building, it effectively ended his state judicial career. His term ends in 2019, and Judge Moore, 69, will be barred by law from running for a judicial position again because of his age.

The court said in its decision that most, but not all, of its members had supported fully removing Judge Moore from the bench, but removal requires a unanimous vote. The decision to suspend him, the court said, was unanimous.