Harry Potter and the Half-Blood Prince is a 2009 fantasy film directed by David Yates from a screenplay by Steve Kloves. It is based on the 2005 novel Harry Potter and the Half-Blood Prince by J. K. Rowling.