On his return to the Ottoman capital, and once again serving as general, he was made ferik (a rank between general and marshal, instituted after the dismantling of the Janissary Order), and was sent to Trablus (Tripoli in today's Libya) alongside Tahir Pasha to fight rebellious troops. Fifteen months later the rebellion had been crushed and for his valor Namık Pasha was promoted (1837/1838). (Sultan Abdülmecit began reigning in 1839.) This military success was a turning point in his career as it paved the way for his many positions as army commander and imperial administrator, and steered him away from diplomacy.
