Roy Moore, the former Alabama Supreme Court chief justice who was removed nearly a decade ago after he refused to obey a federal court order requiring a monument to the Ten Commandments to be removed from the state judicial building, won his old gig back on Tuesday night.

The Alabama Media Group reported the Republican took 52 percent of the vote to defeat Democrat Bob Vance. Moore unsuccessfully ran for governor of Alabama in 2006 and 2010 and has most recently been serving as president of the Foundation of Moral Law, a conservative organization which defends religious liberty. While his campaign website notes he is "nationally known as the Ten Commandments Judge," Moore has said he will not bring the Ten Commandments monument back to the judicial building.

The Alabama Court of the Judiciary — a body made up of four elected Alabama judges, two members of the state bar association and three Alabama citizens chosen by the governor and approved by the state Senate — unanimously voted to fire Moore after he disobeyed the federal court order. Moore was prosecuted by then Republican Attorney General Bill Pryor.