In mathematics, the composition of binary relations is a concept of forming a new relation S ∘ R from two given relations R and S, having as its best-known special case the composition of functions.
If and are two binary relations, then their composition is the relation
In other words, is defined by the rule that says if and only if there is an element such that (i.e. and ).