These are preliminary notes for a modern account of the theory of complex multiplication. The article The fundamental theorem of complex multiplication (2007) is a much improved version of part of this work, so probably the two should be read together. (These notes don't, in fact, correspond to any course I've taught, but it is convenient to include them here.)