  The generalized hybrid metric-Palatini theory of gravity admits a
scalar-tensor representation in terms of two interacting scalar fields. We show
that, upon an appropriate choice of the interaction potential, one of the
scalar fields behaves like dark energy, inducing a late-time accelerated
expansion of the universe, while the other scalar field behaves like
pressureless dark matter that, together with ordinary baryonic matter,
dominates the intermediate phases of cosmic evolution. This unified description
of dark energy and dark matter gives rise to viable cosmological solutions,
which reproduce the main features of the evolution of the universe.
