Titanic (1997) is historical fiction inspired by the real 1912 RMS Titanic disaster. The ship, the sinking, and some figures (Captain Smith, Thomas Andrews, Molly Brown) were real. However, the central romance between Jack and Rose and many interactions were invented for dramatic storytelling.
Labeling it nonfiction would misrepresent history. The film uses real events as a backdrop for a fictional narrative—a powerful technique, but one that requires viewers to separate the documented tragedy from the cinematic love story.