The union of sets A and B contains all elements that are in A, in B, or in both. The intersection of sets A and B contains only the elements that are common to both A and B. Venn diagrams can be used to represent the relationships between sets and determine their union and intersection.