In October, 1871, Gordon was appointed British member of the international commission at Galatz for the improvement of the navigation of the Sulina mouth of the Danube, in accordance with the Treaty of Paris. During his tenure of this office he accompanied General Sir John Adye to the Crimea to report on the British cemeteries there. On his way back to Galatz, in November, 1872, he met Nubar Pasha at Constantinople, who sounded him as to his succeeding Sir Samuel Baker in the Soudan. The following year Gordon visited Cairo on his way home, and on the resignation of Sir Samuel Baker was appointed governor of the equatorial provinces of Central Africa, with a salary of £10,000 a year. He declined to receive more than £2,000.

Gordon went to Egypt in the beginning of 1874, and left Cairo in February for Gondokoro, the seat of his government, travelling by the Suez-Swakin-Berber route. He reached Khartoum on March 13th, stopped only a few days to issue a proclamation and make arrangements for men and supplies, then, continuing his journey, arrived at Gondokoro on April 16th. The garrison of Gondokoro at this time did not dare to move out of the place except in armed bands; but in the course of a year the confidence of the natives had been gained, the country made safe, eight stations formed and garrisoned, the government monopoly of ivory enforced, and sufficient money sent to Cairo to pay all the expenses of the expedition. At the close of the year, having already lost by sickness eight members of his small European staff, Gordon transferred the seat of government from the unhealthy station, Gondokoro, to Laido. By the end of 1875 Gondokoro and Duffh had been joined by a chain of fortified posts, a day's journey apart, the slave-dealers had been dispersed, and a letter post organized to travel regularly between Cairo and the verge of the Albert Nyanza, over two thousand miles as the crow flies.

Gordon had also visited Magungo, Murchison Falls, and Chibero, with a view to a further line of fortified posts, and he established for the first time, by personal observation, the course of the Victoria Nile into Lake Albert. Although he had accomplished a great work since his arrival, his efforts to put down the slave trade were thwarted by Ismail Pasha Yacoub, governor-general of the Soudan, and were likely to prove abortive so long as the Soudan remained a distinct government from that of the equatorial provinces. He, therefore, at the end of 1876, resigned his appointment and returned to England. Strong pressure was put upon him by the khédive to return, and on January 31, 1877, he left for Cairo, where he received the combined appointment of governor-general of the Soudan, Darfour, the equatorial provinces, and the Red Sea littoral, on the understanding that his efforts were to be directed to the improvement of the means of communication and the absolute suppression of the slave trade. Gordon first visited Abyssinia, where Walad el Michael was giving a great deal of trouble on the Egyptian frontier. He settled the difficulty for a time and travelled across country to Khartoum, where he was installed as governor-general, May 5th. After a short stay there he hastened to Darfour, which was in revolt; with a small force and rapid movements he quelled the rising, and, by the humane consideration he showed for the suffering people, won their confidence and pacified the province. Before this work was completely accomplished his attention was called away by the slave-dealers, who, headed by Suleiman, son of the notorious Zebehr, with 6,000 armed men, had moved on Dara from their stronghold, Shaka. Gordon left Fischer on August 31, 1877, with a small escort, which he soon outstripped, and in a day and a half, having covered eighty-five miles on a camel, entered Dara alone, to the surprise of its small garrison. The following morning, attended by a small escort, he rode into the rebel camp, upbraided Suleiman with his disloyalty, and announced his intention to disarm the band and break them up. Gordon's fearless bearing and strong will secured his object, and Suleiman returned with his men to Shaka.

They rose again; and Gordon's Italian aide, Gessi, after a year's marching and fighting, succeeded in capturing Suleiman, and some of the chief slave-dealers with him. They were tried as rebels and shot. The suppression of the slave trade had thus been practically accomplished when on July 1st news arrived of the deposition of Ismail and the succession of Tewfik, which determined Gordon to resign his appointment. On arriving at Cairo, the khédive induced him first to undertake a mission to Abyssinia to prevent, if possible, an impending war with that country. Gordon went, saw King John, at Debra Tabor, but could arrive at no satisfactory understanding with him, and was abruptly dismissed. On his way to Kassala he was made prisoner to King John's men and carried to Garramudhiri, where he was left to find his way with his little party over the snowy mountains to the Red Sea. He reached Massowah on December 8, 1879, and on his return to Cairo, the khédive accepted his resignation. He arrived in England early in January, 1880. During his service under the khédive, Gordon received both the second-and first-class of the order of the Medjidieh.

His constitution was so much impaired by his sojournings in so deadly a climate that his medical advisers sent him to Switzerland to recruit. He returned to England, in April, 1880, and in the following month accompanied the Marquis of Ripon, the new Viceroy of India, to that country as his private secretary. He resigned almost immediately, and was invited to China to advise the Chinese Government in connection with their then strained relations with Russia. Gordon accepted at once, and although difficulties were raised by the home authorities, he reached Hongkong on July 2d, and went on by Shanghai and Chefoo to Tientsin to meet his old friend, Li Hung Chang, who, with Prince Kung, headed the peace party. From Tientsin, Gordon went to Pekin, and his wise and disinterested counsels in favor of peace at length carried the day.

In 1881 he went to Mauritius as commanding royal engineer, and while there was promoted major-general. In 1882, he was at the Cape Colony, endeavoring to arrange a peace with the natives of Basutoland; but he failed, largely through the treachery of the Cape officials.

Gordon attacked by El Mahdi's Arabs.

The success of the Mahdi in the Soudan and the catastrophe to Hicks Pasha, in November, 1883, had induced the British Government, not only to decline any military assistance to enable the Egyptian Government to hold the Soudan, but to insist upon its abandonment by the khédive. To do this it was necessary to bring away the garrisons scattered all over the country, and such of the Egyptian population as might object to remain. To Gordon was intrusted the withdrawal of the garrisons and the evacuation of the Soudan. At Cairo his functions were considerably extended. He was appointed, with the consent of the British Government, governor-general of the Soudan, and was instructed, not only to effect the evacuation of the country, but to take steps to leave behind an organized independent government.