After writing the script for the 2001 film K-PAX, Leavitt was hired by Warner Bros. in February 2004 to rewrite an early draft of the film Blood Diamond, then titled Okavango.[3] The story had been stuck in "development hell" at the studio for years before producers Paula Weinstein and Gillian Gorfil finally decided on the story of a Sierra Leonean farmer caught up in the conflict between a White Zimbabwean smuggler and the local diamond mining organization.[3][4][5]
Leavitt researched the diamond industry to great lengths before he began writing the screenplay, explaining that he has "always been a stickler for immersing [himself] in research".[6] He wrote the film with the assumption that it would offend the diamond industry, particularly De Beers, and so made sure to portray the industry truthfully, aware that he could potentially be sued by De Beers and other powerful mining corporations.[6] Paula Weinstein was impressed by Leavitt's Blood Diamond draft, but hired writers Ed Zwick and Marshall Herskovitz to rewrite the script again; by the time he had completed the script, Zwick had become so interested in the story that he agreed to direct the film as well.[7]