A magnetic resonance imaging apparatus according to an embodiment includes a collection unit and a generation unit. The collection unit collects data of an imaging area over a plurality of time phases within a certain respiratory cycle after applying a labeling pulse to a labeling area in which cerebrospinal fluid flows under a task of respiration. The generation unit generates images of a plurality of time phases depicting the cerebrospinal fluid by using the collected data.