This course is an introduction to commutative algebra, mainly through the theory of modules over rings.