This book provides an introduction to the ergodic theory and topological dynamics of actions of countable groups. The more advanced material includes Popa's cocycle superrigidity, the Furstenberg-Zimmer structure theorem, and sofic entropy. The structure of the book is designed to be flexible enough to serve a variety of readers.