This book provides an introduction to orthogonal polynomials and special functions aimed at graduate students studying these topics for the first time. A large part of its content is essentially inspired by the works of Pascal Maroni on the so-called algebraic theory of orthogonal polynomials.