The present invention is directed to a pharmaceutical composition comprising guanfacine or a salt thereof in nanoparticle form and at least one non-pH dependent sustained release agent. The present invention further is directed to a method of producing said nanoparticles and to nanoparticles obtained by this method.