This textbook provides a comprehensive course in metric spaces. Presenting a smooth takeoff from basic real analysis to metric spaces, every chapter of the book presents a single concept, which is further unfolded and elaborated through related sections and subsections. Apart from a unique new presentation and being a comprehensive textbook on metric spaces, it contains some special concepts and new proofs of old results, which are not available in any other book on metric spaces. It has individual chapters on homeomorphisms and the Cantor set. This book is almost self-contained and has an abundance of examples, exercises, references and remarks about the history of basic notions and results. Every chapter of this book includes brief hints and solutions to selected exercises. It is targeted to serve as a textbook for advanced undergraduate and beginning graduate students of mathematics.