This book is devoted to mathematical structures arising in conformal field theory and the q-deformations. The authors give a self-contained exposition of the theory of Knizhnik-Zamolodchikov equations and related topics. No previous knowledge of physics is required. The text is suitable for a one-semester graduate course.