Once he was taken unawares. On September 23, 1843, he was encamped near Sidi Yusuf with a battalion of infantry and five hundred irregular horse. A spy made known his position to Lamoricière, who was at a distance of six leagues. The French General at once led out in person the Second Chasseurs d'Afrique. A night's march covered the intervening space and the spot was reached in the gray of dawn. The Sultan was aroused from sleep by cries of "The French! the French!" He had barely time to mount. He might have escaped, but he preferred the risk of death to the double stain of surprise and flight. His infantry seized their arms and fired a volley; his cavalry rallied at his voice. Then as the smoke slowly rolled away he dashed into the French chasseurs, dispersed them by the sudden shock, and after a few minutes' hard fighting drew off his whole force in perfect order.
The Beni-Amers, the men whose four thousand sabres had waved in exultation around the young leader of the Djehad; the men whose splendid courage had opened before him the path of glory and of empire, had gone over to the French. Abd-el-Kader resolved to attack them. Suddenly descending upon them he swept through their encampments, slew numbers, and carried off a great booty. A French battalion stationed among them vainly strove to arrest his progress. An Arab chief, one of his old followers, boldly singled him out, rode up, and fired at him point-blank. The ball missed, and Abd-el-Kader shot the traitor dead with his pistol.
The Sultan knew that all was lost unless he could obtain external aid. The smala was now reduced to his own deira, a bare thousand souls, wandering about in miserable fashion. After another desperate engagement with Lamoricière during which the Arab women cheered on the warriors, and Abd-el-Kader and his men fighting in the presence of their wives and children performed new prodigies of valor, he succeeded in safely establishing the noncombatants on the territory of Morocco.
Bugeaud, now become a marshal, wrote to his Government declaring that all serious warfare was finished. In the summer of 1844, the violation of Abderrahman's territory by French troops under Lamoricière and Bedeau led to some warfare, in which the Moroccan troops were twice defeated. The people of the country were strongly in favor of Abd-el-Kader; and when their Sultan, after a French bombardment of Tangiers and Mogador, made a treaty with France by which the Algerian hero was "placed beyond the pale of the law throughout the Empire of Morocco, as well as in Algeria," and was to be "pursued by main force by the Moroccans on their own territory," the Moorish population was filled with resentment. Letters reached Abd-el-Kader from Fez, the capital, dictated and signed by the first grandees in the State, both civil and military, and from the commercial classes, inviting him to ascend the throne of his ancestors. Had he been a mere adventurer or usurper he might have lived henceforth, and died, Emperor of Morocco, But his whole soul was patriotically bent on one object, the freedom and independence of Algeria. He disdained to wear a borrowed crown. As he afterward declared, "His religion forbade him to injure a sovereign chosen and appointed by God."
During the year 1844 the Sultan had made a rapid incursion into the Tell, everywhere appealing to the tribes; but he found the national spirit overawed by the presence of French detachments in all directions, and he returned to his deira in despondent spirit. He now received appeals from some of his devoted caliphs to undertake a fresh campaign, especially from the loyal and chivalrous Ben Salem, who dwelt in the gorges of the Djur jura Mountains. To him Abd-el-Kader replied, promising to come "as soon as affairs in the west were settled."
Months passed away and the Arab tribes who had submitted began to feel the pressure of French domination and to resent the supercilious conduct of French officials. In the spring of 1845 their former Sultan reappeared. He swept down into the valley of the Tafna and routed and cut to pieces a French detachment. In this action the lower part of his right ear was carried away by a musket-ball, the only wound which he ever received. Another detachment of six hundred men laid down their arms without firing a shot. Some stir was made among the Arabs by these successes, and the French commanders took alarm. Lamoricière, Cavaignac, and Bedeau wrote pressing letters for reinforcements, and urged the return of Bugeaud. The most formidable foe of Abd-el-Kader reached the scene of action in October, 1845, bringing fresh forces, and in a week he took the field at the head of a hundred twenty thousand men. This fact is the highest eulogy that can be accorded to the military prowess of a man who so long defied the power of France.
The end of the great career was rapidly coming. After another vain appeal to the Moorish ruler even Abd-el-Kader felt that all was lost. A French writer in the Biographie générale truly declares:
"The greatness of the man was strikingly displayed in the very hour of his downfall. Destitute of resources, surrounded by foes, at open enmity with the Emperor of Morocco, wandering like a hunted lion, with hardly any comrade but his horse, no shelter except his tent, Abd-el-Kader still inspired a terror which forced his enemies to keep a great army on foot in Algeria for protection against possible attacks at his hand."
In his deira, at this time, all was despondency and grief. His own brothers had abandoned him. Ben Salem, the faithful, long-tried, devoted friend and follower, was a voluntary prisoner in the French camp. Abd-el-Kader's whole force was fewer than two thousand men, but among these were twelve hundred horsemen, the flower of the Algerian cavalry. Most of them had been his inseparable comrades, partakers in all his hardships and dangers, throughout his career. During a short period of rest he summoned them daily around him and aroused new enthusiasm among the bronzed veterans by his eloquent words.
On December 9, 1847, the deira was stationed on Moorish territory, at Agueddin, on the left bank of the Melouia. It comprised in all about five thousand souls. The next day news arrived that a great Moorish host under the Sultan's two sons was only three hours' march away. On January 11th, Abd-el-Kader gathered his armed force, marched at dead of night and fell furiously on the first division of the Moors and Arabs. The slumbering foe awoke to see the thick darkness illumined by flashes of light from muskets. Seized with panic, the men rushed away in all directions, abandoning arms, tents, and baggage. In the mean time Abd-el-Kader and his men swept onward and attacked the second division, which was also defeated and dispersed. In half an hour the third division was reached. This force had time to prepare for defence, and the assailants withdrew before a steady fire of infantry and artillery to an adjacent hill. At midday five thousand Moorish cavalry moved out against Abd-el-Kader's little army. At charging distance he led on his men, swept through the foe, and by a skilful combination of assault and retreat regained his deira by the river Melouia, before sunset. The deira had nearly effected its passage across the river, with the baggage and the spoils taken from the enemy, when the Moorish army was seen cautiously advancing.