Red Dragon is a sequel to Hannibal, but only in terms of publishing. The story is a prequel, and it is based on the first book Thomas Harris wrote. So, the movie was released after Hannibal, but the story is set years before.