This book provides an excellent detailed review of an important aspect of the geometric Langlands program, namely, the role of representation theory of affine Kac-Moody algebras (or loop algebras). It provides clear and insightful introductions to such notions as vertex algebras, the Langlands dual group, connections on the punctured disc, representation theory of loop algebras, etc.