Salesforce.com agreed to buy Slack Technologies for $27.7 billion in cash and stock, giving the corporate software giant a popular workplace-communications platform in one of the biggest technology deals of the year. The transaction, Salesforce’s largest-ever acquisition, is expected to close by the end of July, the San Francisco-based company said Tuesday in a statement. Slack investors will receive $26.78 for each company share as well as 0.0776 share of Salesforce -- representing a 55 per cent premium to Slack’s price on November 24, the day before reports about deal talks between the companies. Salesforce chief executive Marc Benioff has orchestrated more than 60 acquisitions in 21 years, taking his company from dot-com era upstart to a titan of cloud computing. The Slack deal would give Salesforce, the leader in programmes for managing customer relationships, another angle of attack against Microsoft, which has itself become a major force in internet-based computing. Microsoft’s Teams product, which offers a workplace chatroom, automation tools and videoconference hosting, is a top rival to Slack. “Together, Salesforce and Slack will shape the future of enterprise software and transform the way everyone works in the all-digital, work-from-anywhere world,” Mr Benioff said in the statement. Stewart Butterfield, Slack’s co-founder and chief executive, will continue to run the business as a Salesforce unit when the deal is completed. He said he is excited to join the company that sparked the cloud revolution. “The opportunity we see together is massive,” Mr Butterfield said in the statement. “This is the most strategic combination in the history of software, and I can’t wait to get going.” Salesforce’s shares declined about 4 per cent in extended trading after closing at $241.35. The stock has jumped 48 per cent this year. Slack’s shares were little changed after closing at $43.84. The stock has almost doubled in 2020, with about half of that gain coming since the acquisition talks were reported. Salesforce, among the first of the fast-growing cloud software companies when it went public in 2004, strives to generate year-over-year revenue increases of more than 25 per cent. Slack, which is expected to increase its sales almost 40 per cent to $877 million this fiscal year, could help that effort. Slack, launched in 2013, went public via a direct listing in 2019. Bloomberg News and other publications reported that companies including Amazon, Microsoft and Alphabet’s Google expressed interest in buying Slack at various times when it was still private. Mr Benioff for years has turned to acquisitions to keep his product lineup fresh. He has set an annual revenue goal of $35bn for Salesforce by fiscal 2024, compared with $17bn in fiscal 2020. The company bought analytics firm Tableau Software in an all-stock deal valued at $15.3bn last year, which was Salesforce’s biggest acquisition at the time. The year before, in 2018, Mr Benioff took over MuleSoft Inc. for $6.5bn. Separately, Salesforce projected revenue will grow about 17 per cent in the current period to as much as $5.675bn. That will be the slowest quarter of year-over-year sales growth in 11 years for the software maker, according to data compiled by Bloomberg. Profit, excluding some items, will be 73 to 74 cents in the period ending in January, missing analysts’ projections for 86 cents. Sales climbed 20 per cent to $5.42bn in the fiscal third quarter, which ended October 31, the company said in a statement. Profit, excluding some items, was $1.74 a share, compared with analysts’ average estimate of 75 cents. The company also said chief financial officer Mark Hawkins will retire effective January 31, and be replaced by Amy Weaver, currently president and chief legal officer. Mr Hawkins will remain an adviser through October 2021, Salesforce said. Salesforce ownership will mark a new era for Slack, a tech upstart with the lofty goal of trying to replace the need for business emails. The cloud-software giant may be able to sell Slack’s chatroom product to existing customers around the world, making it even more popular. In March, Slack said it had reached 12.5 million users who were simultaneously connected on its platform, which has grown more essential while corporate employees work from home during the coronavirus pandemic. Slack has boosted revenue in the midst of Covid-19, but the company’s billings have been underwhelming because of shaky demand from small and mid-sized clients. Meanwhile, use of Microsoft Teams has jumped during the pandemic, and Slack has taken issue with the company’s business tactics. In July, Slack complained to the European Union that Microsoft had broken antitrust law and should be investigated. “Microsoft has illegally tied its Teams product into its market-dominant Office productivity suite, force installing it for millions, blocking its removal, and hiding the true cost to enterprise customers,” Slack said in a statement at the time. Microsoft, which integrates its products with Slack, has denied any wrongdoing.