Boston Legal was a spin-off of long-running David E. Kelley series The Practice, following the exploits of Alan Shore (James Spader) at the legal firm of Crane, Poole & Schmidt.
Season 4, Episode 19 The Gods Must Be Crazy

Also starring: James Spader, William Shatner, Candice Bergen, John Larroquette, and Christian Clemenson

See more at IMDB.