After months of speculation, the deal has been sealed.