We study the nilpotency properties of the Leibniz algebras constructed by means of D-mappings on the algebra of complex square matrices Mn(C). In particular, we obtain a criterion for nilpotency of these algebras in terms of the properties of a D-mapping. We prove also that the Leibniz algebras under consideration cannot be simple.