  We develop general results on centroids of Lie algebras and apply them to
determine the centroid of extended affine Lie algebras, loop-like and Kac-Moody
Lie algebras, and Lie algebras graded by finite root systems.
