A foil is a character who contrasts with another through opposite traits, highlighting the other's qualities. Juxtaposing contrasting characters makes their differences more apparent, helping the audience understand each character deeply.
Classic examples: Mercutio (witty, cynical) foils Romeo (romantic, earnest); Banquo (honorable, skeptical) foils Macbeth (ambitious, credulous); Laertes (impulsive, active) foils Hamlet (philosophical, hesitant).
The foil doesn't just differ—it clarifies.