A relation (Latin relatio "relation", "relationship") is generally a relationship that can exist between things. Relations in the sense of mathematics are exclusively those relationships for which it is always clear whether they exist or not; objects cannot therefore be in a relation to each other "to a certain degree". Thus, a simple set-theoretical definition of the term is possible: A relation Ris a set of n-tuples. Things standing in relation Reach other form n-tuples, which Rare elements of

Unless explicitly stated otherwise, a relation is commonly understood to be a two-digit or binary relation. In such a relation, two elements aand bform an ordered pair aand (a,b).originate bfrom different basic sets Aand Bthe relation is called heterogeneous or "relation between the sets Aand B." If the basic sets match ( A = B), then the relation is called homogeneous or "relation in or on the set A."

Important special cases, for example equivalence relations and order relations, are relations on a set.

Today, some authors do not necessarily consider the term relation to be restricted to sets, but allow any class consisting of ordered pairs to be considered a relation.