He met Marshall in college and Lily through Marshall in college. The two have lived together since, and thus is the nest that’s formed. Barney meets Ted some years later, and is a crazy womanizer who pulls off even crazier stunts. Robin meets them somewhere near the beginning of the story and is a Canadian journalist whose down in America for work. This is all played out through Ted as he tells his grown up children how he met their mother.