Known as "the Master", Ehrlich had a 50-year career as a defense and divorce attorney in San Francisco. He was an early example of a "celebrity lawyer", with a talent for publicity as well as legal expertise. He wrote a dozen books, on such subjects as the law, the Bible, and his own life story.
He was the model for television lawyer Sam Benedict, portrayed by Edmond O'Brien in the early 1960s, and Ehrlich was the series' technical adviser.[2] In the 1950s, Ehrlich had coached actor Raymond Burr when Burr was preparing to play trial attorney and sleuth Perry Mason on television. Some writers contend that Ehrlich was the actual inspiration for the Perry Mason character, who first appeared in novels in 1933, when Ehrlich was a young attorney. But Mason's creator, Erle Stanley Gardner — whose own legal career bore similarities to Ehrlich's — did not make any such statement.
For much of his career, Ehrlich was lead attorney for the San Francisco Police Officer's Association. Ehrlich defended prostitutes and police officers during the 1937 Grand Jury proceedings initiated by the work of Edwin Atherton, hired by the San Francisco DA to investigate police malfeasance.
The residence Ehrlich designed with a sliding glass roof at the top of Camino Alto Road in Marin County, in Northern California, was later owned by rock promoter Bill Graham. Ehrlich loved to tell people visiting his home that the electronic roof was actually powered by clients who were unable to pay their legal bills.[citation needed]