Two of the most important formulas for Schubert (or Grothendieck) polynomials are a) as a generating function over reduced pipe dreams; and b) as a Demazure recursion on the Bruhat graph. Solvable lattice models are combinatorial objects that encode both of these perspectives. We'll give an overview of lattice models, describe the Yang-Baxter equation along with some of its far-reaching consequences, and describe in the case of Schubert and Grothendieck polynomials how formulas a) and b) arise from the lattice model.