In category theory, a functor is a map between categories satisfying certain relations. Functors, in a sense, provide for categories what group homomorphisms do for groups. To be precise, a function
between two categories associates to each object
an object
, and to each morphism
a morphism
such that:

.
Functors are the fundamental objects used to relate structures between different categories.
Examples
Algebraic topology was the first field in which the usefulness of the notion of a functor was recognized. A basic example is the fundamental group functor
. The action on objects is defined by sending a topological space to its fundamental group
. Recall that a map between two topological spaces
induces a map
by
. Set
so defined. The functoriality of
boils down to the fact that
, that is, the identity map on a topological space induces the identity map on its fundamental group, together with the fact that
, explained at fundamental group.