The category of unital rings has as objects. Morphisms f:R→Sf:R\to S preserve addition, multiplication, and the unit: f(1R)=1Sf(1_R)=1_S. Identities and composition are the corresponding functions. The zero ring is allowed as an object.

Convention and comparison

The zero function into a nonzero unital ring is not a morphism. An inclusion of a matrix corner generally belongs to the but not to this category, because it sends the smaller unit to a proper idempotent.