A mapping is a relationship between two sets, where each element in the first set is associated with exactly one element in the second set. It establishes a connection between the elements of these two sets, allowing for the transfer of information or the transformation of values from one set to the other.