This book, the first of its kind, bridges the gap between the increasingly interlinked fields of nanophotonics and artificial intelligence (AI). While artificial intelligence techniques, machine learning in particular, have revolutionized many different areas of scientific research, nanophotonics holds a special position as it simultaneously benefits from AI-assisted device design whilst providing novel computing platforms for AI. This book is aimed at both researchers in nanophotonics who want to utilize AI techniques and researchers in the computing community in search of new photonics-based hardware. The book guides the reader through the general concepts and specific topics of relevance from both nanophotonics and AI, including optical antennas, metamaterials, metasurfaces, and other photonic devices on the one hand, and different machine learning paradigms and deep learning algorithms on the other. It goes on to comprehensively survey inverse techniques for device design, AI-enabled applications in nanophotonics, and nanophotonic platforms for AI. This book will be essential reading for graduate students, academic researchers, and industry professionals from either side of this fast-developing, interdisciplinary field.