An important category of rabbinic literature is the Midrash (Midrashim in the plural).
This term refers to a narrative that explains passages of the Bible with the aim of teaching an aspect of Jewish law and bringing out a moral lesson. Often a Midrash seeks to provide the answer to a question that arises from the text or attempts to resolve an apparent inconsistency.
Source: "Per conoscere l'ebraismo" by Daniel Taub