Fahrenheit 451, which originally began as a short story, by Ray Bradbury is typically considered to be a work of science fiction because of the futuristic society he creates. However, it is was also his way of speaking out against the conformity and censorship that was present in society at that time.
Bradbury wrote this to express the concerns he had with society at the time (the early 1950's after WWII). This was the heyday of McCarthyism. Speaking out and having your own ideas often lead you to be a social outcast.