The main theme of a fugue is called the subject.
The subject is the central melody around which the entire piece is constructed. In a fugue, this theme is introduced at the beginning, and throughout the piece, it is developed through various musical techniques such as imitation, counterpoint, and modulation. Each voice in the fugue may present the subject in different ways, sometimes answering it in a different pitch or extending it into new musical ideas.