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.

The transaction itself is a first for Wachtell and Sullivan & Cromwell on behalf of Whole Foods and Amazon, respectively. Orrick, Herrington & Sutcliffe and Dechert represented Whole Foods in the grocery store chain's failed merger attempt with Wild Oats Marketplace in 2009. (Wachtell partner George Conway III, the husband of White House counselor Kellyanne Conway, co-wrote a piece questioning the U.S. Court of Appeals for the D.C. Circuit's decision in that case.)