Abstract. Semilinear elliptic optimal control problems involving the L 1 norm of the control in the objective are considered. Necessary and sufficient second-order optimality conditions are derived. A priori finite element error estimates for piecewise constant discretizations for the control and piecewise linear discretizations of the state are shown. Error estimates for the variational discretization of the problem in the sense of [13] are also obtained. Numerical experiments confirm the convergence rates.Key words. optimal control of partial differential equations, non-differentiable objective, sparse controls, finite element discretization, a priori error estimates