An example of a foil is Harry Potter and Voldemort in the Harry Potter series. They present very opposite character traits.