  We first show that any connected algebraic group over a perfect field is the
neutral component of the automorphism group scheme of some normal projective
variety. Then we show that very few connected algebraic semigroups can be
realized as endomorphisms of some projective variety X, by describing the
structure of all connected subsemigroup schemes of End(X).
