Reconstruction
In 1865, Coke was appointed a Texas district court judge, and in 1866, he was elected as an associate justice to the Texas Supreme Court. The following year, the military Governor-General Philip Sheridan removed Coke and four other judges as "an impediment to reconstruction", in pursuit of unionist Reconstruction policies. The removal of the five judges became a cause célèbre and made their names famous, synonymous in the public eye with resistance to Union occupation.
Richard Coke leveraged resentment at Union occupation to construct a Democratic electoral coalition that ruled Texas for more than 100 years. Through Ku Klux Klan attacks, intimidation, and public lynching of Black voters and their white allies, Coke's coalition re-established conservative white control of Texas in the 1870s. In the following decades, disfranchisement of Black Texans was maintained with poll taxes and white primaries and the number of black voters would decrease sharply from more than 100,000 in the 1890s to 5,000 by 1906.
Having been removed by Sheridan, Coke ran for governor as a Democrat in 1873 and took office in January 1874. The Texas Supreme Court ruled his election invalid in an extraordinary habeas corpus writ called Ex parte Rodriguez because the polls were open for only one day, rather than the four days mentioned in the state constitution. The court is known as the "Semicolon Court" because the meaning of a particular semicolon in the constitution was important in the case. As recounted by the Texas State Historical Association, in response,
Disregarding the court ruling, the Democrats secured the keys to the second floor of the Capitol and took possession. [Incumbent Gov. Edmund] Davis was reported to have state troops stationed on the lower floor. The Travis Rifles (a Texas military unit created to fight Indians), summoned to protect Davis, were converted into a sheriff's posse and protected Coke. On January 15, 1874, Coke was inaugurated as governor. On January 16, Davis arranged for a truce, but he made one final appeal for federal intervention. A telegram from President Ulysses S. Grant said that he did not feel warranted in sending federal troops to keep Davis in office. Davis resigned his office on January 19. Coke's inauguration restored Democratic control in Texas.
Coke's administration was marked by vigorous action to balance the budget and by a revised state constitution adopted in 1876. He was also instrumental in creating the Agricultural and Mechanical College of Texas, which became Texas A&M University. Having once been removed from the Texas Supreme Court, as governor, he appointed all its members, naming as Chief Justice Oran Roberts (after the US Senate had refused to seat him). George F. Moore, who was Chief Justice when he had been fired along with Coke, became the first chief justice elected under Texas' 1876 Constitution, an honor he held until his death. Others from the Texas judiciary under the Confederacy received key appointments.
Once the new Constitution had been negotiated, Coke resigned his office in December 1876, following his election by the legislature to the United States Senate. By the time of his resignation, Texas Democrats had united with white supremacist groups such as the Ku Klux Klan to maintain political control of the state. Coke is a central figure of the "Redeemers" movement to restore white political dominance in the American South after the Civil War.