According to the classical Krull–Schmidt Theorem, any module of finite composition length decomposes as a direct sum of indecomposable modules in an essentially unique way, that is, unique up to isomorphism of the indecomposable summands and a permutation of the summands. Modules that do not have finite composition length can have completely different behaviors. In this survey, we consider in particular the case of the modules M R whose endomorphism ring E := End(M R ) is a semilocal ring, that is, E/J(E) is a semisimple artinian ring. For instance, modules of finite composition length have a semilocal endomorphism ring, but several other classes of modules also have a semilocal endomorphism ring, for example artinian modules, finite direct sums of uniserial modules, finitely generated modules over commutative semilocal rings, and finitely presented modules over arbitrary semilocal rings. Several interesting phenomena appear in these cases. For instance, modules with a semilocal endomorphism ring have very regular direct-sum decompositions into indecomposables, their direct summands can be described via lattices, and direct-sum decompositions into indecomposables (=uniserial submodules) of finite direct sums of uniserial modules are described via their monogeny classes and their epigeny classes up to two permutations of the factors.