“NCIS” star Michael Weatherly has signed on to play the lead role in CBS’ “Bull,” a new pilot that is based on author and psychologist Phil McGraw’s early career as a legal defense consultant before he became famous as Dr. Phil, the talk show host.

Weatherly’s character Dr. Bull, heads one of the most prolific trial consulting services of all time, according to The Hollywood Reporter. His company analyzes juries to help develop defense strategies. Dr. Bull is described as someone who is magnetic to women due to his candor, intelligence and physicality.

“Bull” will be written by Dr. Phil himself. Paul Attanasio of “House” will co-wrote it. The new CBS drama will be executive produced by Stage 29 Productions' Jay McGraw and Amblin Television's Justin Falvey and Darryl Frank. Weatherly will be joined by co-stars Chris Jackson, Geneva Carr and Freddy Rodriguez.

After 13 seasons with “NCIS” as special agent Tony DiNozzo, Weatherly’s character in the long-running CBS TV series will be written out in the Season 13 finale.

“They are working on how Michael’s character is going to be written out. [Showrunner] Gary [Glasberg] and the producers are working on that right now,” TVLine reported Glenn Geller, CBS entertainment president, as saying in January.

“I will definitely miss — as I’m sure the fans will, as well as my mother — Special Agent Tony DiNozzo. [Weatherly’s] decision was his. It was a creative one. He had been in the role for 13 years, and I completely understand it, and I wish him well,” Glenn added.

Aside from “NCIS,” Weatherly also portrayed the character Logan in the TV series "Dark Angel," wherein he co-starred with then-fiancée Jessica Alba. He appeared in other TV shows including "The Cosby Show," "Loving," "Jesse" and "Significant Others." His film credits include "The Last Days of Disco," "Gun Shy," "Venus and Mars," "Charlie Valentine," "The Specials" and "Trigger Happy."