Abstract. Let K be a real abelian field of odd class number in which 5 is unramified. Let S 5 be the set of places of K above 5. Suppose for every non-empty proper subset S ⊂ S 5 there is a totally positive unit u ∈ O K such that q∈S Norm Fq/F 5 (u mod q) = 1. We prove that every semistable elliptic curve over K is modular, using a combination of several powerful modularity theorems and class field theory. We deduce that if K is a real abelian field of conductor n < 100, with 5 ∤ n and n = 29, 87, 89, then every semistable elliptic curve E over K is modular.Let ℓ, m, p be prime, with ℓ, m ≥ 5 and p ≥ 3. To a putative non-trivial primitive solution of the generalized Fermat x 2ℓ +y 2m = z p we associate a Frey elliptic curve defined over Q(ζp) + , and study its mod ℓ representation with the help of level lowering and our modularity result. We deduce the non-existence of non-trivial primitive solutions if p ≤ 11, or if p = 13 and ℓ, m = 7.