Supersymmetry (SUSY) breaking close to the scale of grand unification can explain cosmic inflation. As I demonstrate in this talk, this can be achieved in strongly coupled SUSY gauge theories, such that the energy scales of inflation and SUSY breaking are generated dynamically. As an example, I present a dynamical model in which gauging a global flavor symmetry in the SUSY-breaking sector gives rise to a Fayet-Iliopoulos D term. This results in successful D-term hybrid inflation in agreement with all theoretical and phenomenological constraints. The gauged flavor symmetry can, in particular, be identified with U(1)_B-L. In the end, this leads to a consistent cosmological scenario that unifies: (1) high-scale SUSY breaking, (2) viable D-term hybrid inflation, (3) spontaneous B-L breaking at the GUT scale, (4) leptogenesis, and (5) the type-I seesaw mechanism.