A topic is the subject matter of a piece of writing, while a theme is an underlying message or idea that the author is trying to convey throughout the entire story. In simpler terms, a topic is what the story is about, while a theme is what the story is trying to say about the topic.