Relations in mathematics and logic refer to the ways in which elements from one set can be associated with elements from another set. They are foundational in understanding functions, equivalence classes, and orderings, providing a framework for analyzing connections between different mathematical objects.