We construct a consistent Kaluza─Klein reduction of D = 11 supergravity on , where or H 2, or a quotient thereof, at the level of the bosonic fields. The result is a gauged N = 4, D = 5 supergravity theory coupled to three vector multiplets, with the gauging lying in an subgroup of the global symmetry group of the ungauged theory. For , the D = 5 theory has a maximally supersymmetric AdS 5 vacuum which uplifts to the known solution of D = 11 supergravity corresponding to M5-branes wrapping a Riemann surface with genus greater than one and dual to an N = 2 SCFT in d = 4. For , we find two AdS 5 solutions, one of which is new, and both of which are unstable. There is an additional subtruncation to an N = 2 gauged supergravity coupled to two vector multiplets, with very special real manifold , and a single hypermultiplet, with quaternionic Kähler manifold and gauging associated with an subgroup.