The invention relates to a process for dyeing and/or lightening keratin fibres using direct dyes of styryl or naphthylamide type bearing a (C1-C18)aminoalkyl group. The dyeing process and the composition according to the invention make it possible in particular to obtain long-lasting, intense, chromatic and/or homogeneous colouring on the keratin fibres.