In algebraic number theory, class field theory studies the abelian extensions of an algebraic number field, or more generally a global field or local field.