(Reuters) - Terex said on Monday it would acquire Dover Corp's environmental solutions business in an all-cash deal valued at $2 billion.

The deal is expected to close in the second half of the year.

Dover's environmental solution business consists of several companies that build machinery and other ancillary equipment to serve the waste collection industry.

UBS Investment Bank served as Terex's financial advisor while Fried Frank and Pryor Cashman served as its legal advisors for the deal.

(Reporting by Nathan Gomes in Bengaluru; Editing by Krishna Chandra Eluri and Mrigank Dhaniwala)