A category defines the abstraction of composition. We primarily understand a category as a collection of some objects which satisfy a set of formal rules concerning Composition, Associativity, and Identity.

Formal Definition
Example
A common example of categories in action is when defining relations between Sets. Say we want establish a Bijection for the set of all shapes to a modified set of natural numbers :
We can define a relation that does just this
Where maps the number of edges of a given shape to its corresponding natural number.
Now say we have a set of the booleans:
And we define a new relation that maps the even numbers to , and the odd numbers to :
By the formal definition of a category we now have a Composition that maps shapes directly to a boolean: