This chapter introduces perturbation theory and Feynman diagrams for both equilibrium and nonequilibrium systems. The theory is used to treat the many-body problems in several areas of physics; readers interested in more information can consult the references. Here, I will focus mainly on what is relevant to transport.