From the wiki:
Judicial career (1979-1989)
In 1977, he became a judge of the circuit court of Broward County, Florida. In 1979, he was appointed by President Jimmy Carter as a U.S. district judge for the Southern District of Florida.
In 1981, Hastings was charged with accepting a $150,000 bribe in exchange for a lenient sentence and a return of seized assets for 21 counts of racketeering by Frank and Thomas Romano, and of perjury in his testimony about the case. In 1983, he was acquitted by a jury after his alleged co-conspirator, William Borders, refused to testify in court, resulting in a jail sentence for Borders.
In 1988, the Democratic-controlled U.S. House of Representatives took up the case, and Hastings was impeached for bribery and perjury by a vote of 413-3. He was then convicted in 1989 by the United States Senate becoming the sixth federal judge in the history of the United States to be removed from office by the Senate. The Senate, in two hours of roll calls, voted on 11 of the 17 articles of impeachment. It convicted Hastings of eight of the 11 articles. The vote on the first article was 69 for and 26 opposed.