Damon J. Keith, one of the most prominent African American judges on the federal bench, who upheld civil rights and civil liberties in influential rulings that included a 1971 decision barring the Nixon administration from conducting warrantless domestic wiretaps, died April 28 at his home in Detroit. He was 96.

The cause was complications from leukemia and heart disease, said his daughter Cecile Keith Brown.

Judge Keith served in the federal judiciary for more than 50 years beginning in 1967, when President Lyndon B. Johnson, a Democrat, named him to the U.S. District Court in Detroit, with jurisdiction over Eastern Michigan. Ten years later, President Jimmy Carter, also a Democrat, elevated him to the U.S. Court of Appeals for the Sixth Circuit in Cincinnati.

Judge Keith took senior status in 1995 but continued hearing cases, including on secret deportation hearings for alleged terrorists after 9/11. The George W. Bush administration, he declared, had unconstitutionally sought to “uproot people’s lives, outside the public eye, and behind a closed door.”

“Democracies die behind closed doors,” he wrote in the oft-cited 2002 majority opinion.

The case provided a sort of legal bookend to his decision in the civil liberties case during the Nixon administration, which had helped propel him to national attention. In 1972, the U.S. Supreme Court upheld Judge Keith’s ruling ordering the government to turn over transcripts of conversations it had recorded in the course of investigating a radical group accused of planning to bomb a CIA office in Michigan.

Judge Keith credited his drive in large part to his father, who worked for $5 a day in a Ford Motor plant and implored his son to go to college. Another important mentor was future U.S. Supreme Court Justice Thurgood Marshall, who frequented Howard University when Judge Keith was a law student there in the late 1940s.

Notable deaths in 2019: Elijah Cummings, Cokie Roberts, Toni Morrison and others we have lost this year

Don Imus | Don Imus, who spent more than half a century in radio and television skating along the edge of propriety and occasionally falling into the abyss of the unacceptable, died Dec. 27 at a hospital in College Station, Tex. He was 79. In a roller-coaster career in which he grew chummy with prominent politicians, repeatedly got suspended or fired for offensive cracks, abused drugs and touted health foods, Mr. Imus won a loyal following, made millions and transformed himself from a bad-boy DJ into a host whose program became a nearly mandatory stop for presidential candidates. Read the obituary (Richard Drew/AP)

“Thurgood would say, ‘When you finish Howard Law, I want you to use the law as a means for social change,’ ” Judge Keith told The Washington Post in 2016. “That is what I’ve tried to do in my lifetime.”

He venerated the Constitution as a way toward equality for African Americans who had been excluded from schools, professions, neighborhoods, politics and other arenas of civic life. In 1971, he ordered that about 10,000 of the 24,000 students in the Pontiac, Mich., public school system be bused to achieve racial integration. It was one of the first such orders in the North.

Shortly before the order took affect, 10 Pontiac school buses were firebombed, a crime for which five Ku Klux Klansmen were later convicted. Judge Keith received death threats.

“I don’t scare easily,” he told The Post in 2016.

The Supreme Court declined to review the case, allowing busing to proceed.

In 1975, Judge Keith ordered Hamtramck, Mich., a town within the city of Detroit, to relocate 500 African Americans who had been displaced from their homes during federally supported urban renewal projects that critics denounced as “Negro removal.”

Writing that the city had “ignored their requests for assistance, failed to investigate complaints and in no way compensated such displacees for the loss suffered,” he ordered the town to provide the former residents with new, affordable housing.

More than 30 years passed before the housing was built, but when he saw keys exchange hands, “it was meaningful to me as a human being,” he told the New York Times in 2010.

Judge Keith endured racism throughout his career — from his time as a janitor at the Detroit News, where a white reporter derisively told him that he should “keep mopping” instead of studying for the bar examination, to an incident at a 1991 conference on the Constitution’s bicentennial, where he was mistaken for a parking attendant.

In 2016, he wrote a forceful dissent when the federal appellate panel on which he served upheld tighter regulations on absentee and provisional voting ballots in Ohio.

“Rather than honor the men and women whose murdered lives opened the doors of our democracy and secured our right to vote,” he wrote, the majority had forsaken the votes of “the most defenseless.” Judge Keith included in his decision photographs of civil rights martyrs including Martin Luther King Jr. and lynching victim Emmett Till.

In an interview with Slate magazine, he later denounced “the racist attitude of the majority.”

“Look at those pictures,” he said of the images he included. “These are men and women who died for the right to vote. I was really so hurt by the decision of the majority of the court. My grandparents lived in Georgia, and they were not allowed to vote because of racism. I thought about them.”

Damon Jerome Keith was born in Detroit on July 4, 1922. His parents were from Atlanta, where his father ran small businesses including a general store and a photography studio before migrating north to work for Ford.

“Most kids in my neighborhood did not go to college,” the Detroit Free Press later quoted Judge Keith as saying. “Most went to Jackson prison.”

His mother’s cousin, who was the wife of the president of what was then West Virginia State College, encouraged Judge Keith to enroll at the historically black institution, where he received a bachelor’s degree in 1943.

He served in a segregated Army unit during World War II, an experience that drove his interest in the law. “After coming back and having to ride on the back of buses while seeing German soldiers ride in the front,” he recalled, “I made up my mind I was going to become a lawyer.”

He received a law degree from Howard University in 1949 and a master of laws degree from Wayne State University in Detroit, whose law school today houses the Damon J. Keith Center for Civil Rights.

In the early years of his career, Judge Keith practiced law in Detroit while also holding civic roles including leading the Michigan Civil Rights Commission. In 1953 he married Rachel Boone, a physician. She died in 2007. Survivors include three daughters, Debbie Keith and Gilda Keith, both of Detroit, and Cecile Keith Brown of Chicago; and two granddaughters.

Judge Keith made his most noted ruling in the Nixon administration case involving domestic wiretaps. The administration argued that the government had acted within its lawful authority to protect the country from internal threat, an argument that Judge Keith rejected, as did the Supreme Court, in an 8-to-0 decision citing Fourth Amendment protections against unreasonable searches and seizures.

“History abundantly documents the tendency of government — however benevolent and benign in its motives — to view with suspicion those who most fervently dispute its policies,” Justice Lewis F. Powell Jr. wrote in his decision. “The price of lawful public dissent must not be a dread of subjection to an unchecked surveillance power.”

Judge Keith’s honors included the Spingarn Medal from the N.A.A.C.P. He was the subject of the 2016 documentary film “Walk With Me: The Trials of Damon J. Keith,” directed by Jesse Nesser.

“I really didn’t know what kind of judge I’d be,” Judge Keith once said, reflecting on his earliest days on the bench. “Putting on the robes can be an awesome responsibility. You have the chance to find out a lot about yourself.”