We report the experimental discovery of a new structural phase of well-known orthorhombic R 2BaCuO5 (R = Sm and Eu), exhibiting a tetragonal crystal structure with space group . The high-pressure tetragonal phase is isostructural with the brown phase R 2BaCuO5 (R = La, Pr, and Nd). In this structure, the Cu ions form an isolated square planar environment, contrary to the orthorhombic phase, where the Cu ions are located in a distorted square pyramid. Magnetization and specific heat measurements reveal the long-range antiferromagnetic order of the Cu2+ and/or Sm3+ moments for the Sm-sample, with the magnetic specific heat accounting for only 35% of the magnetic entropy. Interestingly, the Eu-sample remains paramagnetic down to the lowest temperature. The high Curie-Weiss temperature of -140K and magnetic entropy of 3% of the expected value indicates that the system is highly frustrated. We estimated the isothermal entropy change and investigated the magnetocaloric effect for Eu2BaCuO5, and the maximum entropy change detected at a field of 70kOe at 3K reaches 5.6Jkg-1K-1.