Complex systems are everywhere. Ecosystems, financial markets, traffic, the economy, the internet and social media are complex systems. This textbook summarizes our understanding of complex systems and the methodological progress made over the past 20 years in a clear, structured, and comprehensive way.