We present experimental data on the partitioning of Li, Be, B, K, Mg, Sr, Ga, Rb, Cs, Ba, La, Ce, Pr, Nd, Sm, Eu, Gd, Tb, Dy, Ho, Er, Tm, Yb, Lu, Th, U, Hf, Zr, Nb and Ta between lawsonite and fluid, and zoisite and fluid at 3·0-3·5 GPa and 650-850°C. The aim is to provide data bearing on the trace element contents of fluids released during dehydration of subducting oceanic crust. Experimental trace element partition coefficients for lawsonite indicate a preference for the light rare earth elements (LREE) over the heavy REE (HREE) and for Be. These characteristics are consistent with the chemical composition of lawsonite in natural rocks. Experimental trace element partition coefficients for zoisite indicate a preference for HREE relative to LREE. This observation, consistent with earlier experimental data, is the reverse of the observed trace element compositions of natural zoisites, indicating the influence of othe r factors on the trace element contents of this phase. Lattice strain theory explains well the experimentally derived partitioning of divalent cations in the Ca-site between lawsonite and fluid. However, the weak relative fractionation of REE between lawsonite and fluid cannot be explained by lattice strain theory, as previously observed for zoisite-fluid REE partitioning. We combine our experimental data with thermodynamic models of mineral stability to model the compositions of fluids released during subduction of altered normal mid-ocean ridge basalt. The low La/Sm ratio associated with very high Ba/Th in arc magmas can be explained only if allanite is stable in the subducting oceanic crust. This suggests that the crustal fluid component involved in arc magma petrogenesis results from processes occurring in the warm, top part of the subducting slab. Decreasing lawsonite modal proportion with depth is associated with a large release of fluid characterized by low B/Be ratios that could explain the decreasing B/Be ratios in arc magmas with increasing distance from the trench. This implies that an important Be input in arc magma originates from the fluid generated during oceanic crust dehydration.