Amazon.com Inc. announced Friday its plans to purchase the organic upscale grocery company Whole Foods Market Inc. in a $13.7 billion mega-deal, one that has yielded key roles for four Am Law 100 firms, as noted by sibling publication Texas Lawyer.

Sullivan & Cromwell M&A partners Krishna Veeraraghavan and Eric Krautheimer are leading a team from he firm advising Amazon as the online retail behemoth moves into the grocery business and physical stores. Wachtell, Lipton, Rosen & Katz executive committee co-chair Daniel Neff and M&A partners Trevor Norwitz and Sabastian Niles are heading up Whole Foods’ outside transactional team.