Longstanding relationships helped McDermott Will & Emery and Nixon Peabody guide Thursday’s groundbreaking $300 million tie-up between two craft brewing titans: the Boston Beer Co. and Dogfish Head Brewery.

Boston Beer Co. was the second-largest independent craft brewer in the United States in 2018, according to trade group the Brewers Association, while Dogfish Head ranked 13th in beer sales volume.