This book offers an introductory step-by-step course in Dynamic Stochastic General Equilibrium modelling. Modern macroeconomic analysis is increasingly concerned with the construction, calibration and/or estimation and simulation of Dynamic General Equilibrium (DGE) models. The book is intended for graduate students as an introductory course to DGE modelling and for those economists who would like a hands-on approach to learning the basics of modern dynamic macroeconomic modelling. The book starts with the simplest canonical neoclassical DGE model and then gradually extends the basic framework incorporating a variety of additional features, such as consumption habit formation, investment adjustment cost, investment-specific technological change, taxes, public capital, household production, non-ricardian agents, monopolistic competition, etc. The book includes Dynare codes for the models developed that can be downloaded from the book’s homepage.The second edition is identical to the first with the exception of a revised appendix to Chapter 2. The revised appendix can be downloaded free of charge in the accompanying downloads section.