The closing section where the subject and answer appear in close, overlapping imitation is the stretto (Italian for “narrow” or “tight”).
Stretto can appear earlier in the fugue as a developmental device, but its most dramatic occurrence is typically near the end—where the accumulated tension of the subject/answer interplay resolves into the final cadence.