Salesforce announced an agreement on Tuesday to buy MuleSoft in an enterprise technology merger that would value MuleSoft at $6.5 billion.

Salesforce will pay $44.89 per share for MuleSoft, a 36 percent premium — each MuleSoft share will equal $36 in cash and 0.0711 shares of Salesforce common stock, the companies said. The deal is expected to close by the end of July.

MuleSoft makes a platform that helps Fortune 500 companies stitch together disparate software applications, data, and devices. Salesforce CEO Marc Benioff said in a statement that the merger will help Salesforce users unite data across different cloud products.

MuleSoft had one of the best opening IPO days of 2017 when it went public a year ago on the New York Stock Exchange. Prior to its public offering, MuleSoft raised money from Salesforce Ventures.

MuleSoft shares rose 4.3 percent after hours, after rising more than 27 percent during the regular trading session, after Reuters reported the two companies were in "advanced talks" on a deal.

Here's the full release on the deal