In this paper, using a generalization of the notion of Prym variety for covers of projective varieties, we prove a structure theorem for the Mordell–Weil group of abelian varieties over function fields that are twists of abelian varieties by Galois covers of smooth projective varieties. In particular, the results we obtain contribute to the construction of Jacobians of high rank.