This textbook explains how to design and build Agent Based Models and how to link them to Geographical Information Systems.