The forum module is an activity where students and teachers can exchange ideas by posting comments. There are four basic forum types. Forum posts can be graded by the teacher or other students. A forum can contribute significantly to successful communication and community building in an online environment. You can use forums for many innovative purposes in educational settings, but teaching forums and student forums are arguably the two more significant distinctions.
Read more about the forum module in the official Moodle documentation.