It is now clear that the epoch when the Universe was half of its current age is a crucial period during which galaxies assembled their mass and evolved into the galaxies we observe in the local Universe. However, so far only very few direct studies of mass assembly in action, hence galaxy merging, were conducted over z=1 and usually relied on very small or biased samples. Based on very deep near infrared survey data, the latest UKIDSS-UDS DR8, combined with the optical data conducted by Subaru and CFHT and Spitzer IRAC observations, we explored the evolution of the merging rate up to z = 2, over the largest volume of the Universe at 0.4<z<2 ever sampled. The pair fraction is found to decrease by a factor of two during this period, and wet (gas rich) mergers dominate largely. The dry mergers are very rare, ruling it out as the main mechanism for the mass assembly of passive massive galaxies. Also while massive galaxies undergo a decrease of their pair fraction during this period, less massive systems follow an increase during the same period.