literary genre of fiction with philosophical themes
Philosophical fiction refers to the class of works of fiction which devote a significant portion of their content to the sort of questions normally addressed in philosophy. These might explore any facet of the human condition, including the function and role of society, the nature and motivation of human acts, the purpose of life, ethics or morals, the role of art in human lives, the role of experience or reason in the development of knowledge, whether there exists free will, or any other topic of philosophical interest. Philosophical fiction works would include the so-called novel of ideas, including some science fiction, utopian and dystopian fiction, and the Bildungsroman.
Read more or edit on Wikipedia