This textbook contains the lecture series originally delivered at the "Advanced Course on Limit Cycles of Differential Equations" in the Centre de Rechercha Mathematica Barcelona in 2006. It covers the center-focus problem for polynomial vector fields and