This document provides an electronic version of the second edition of the Templates book, which describes templates (building blocks) for iterative methods used to solve systems of linear equations. The book is divided into chapters covering stationary and nonstationary iterative methods, preconditioning techniques, related computational issues like parallelism, and remaining topics. It includes summaries of various iterative methods like Jacobi, Gauss-Seidel, conjugate gradient, and GMRES as well as preconditioning approaches like incomplete factorizations. The document acknowledges funding sources and provides lists of symbols, figures, and contents for the book.