This textbook provides students with an overview of cyber-physical microgrid networks and an in-depth introduction to photovoltaics, batteries, flywheel, supercapacitor, micro-turbines, wind generation, power-electronic interfaces, modeling and stability analysis of microgrids, and cyber-communication networks and security. The text helps upper-level undergraduate and graduate students gain a foundational understanding of microgrids and renewable energy, and offers an introduction to the frontier of theoretical research and practical applications of cyber-physical systems, paving the way to uncover and understand the operational mechanism of cyber-physical microgrids. The book includes examples and test systems throughout for problem-solving and will be an essential resource for students, researchers, and professionals in power engineering.