Before commencing his career as independent commander he, following his father's example, attached himself to the court of Sigismund, the Emperor-king, in whose train he visited the countries of Western Europe, Germany, England, and Italy, till he at length returned home, his mind enriched by experience but with the fervor of his first faith unchilled.

He had thus passed the flower of his age when nearly sixty years old, he repaired at his sovereign's command to the south of Hungary to organize the resistance to the Turks. At first he was appointed Ban of Severin, and as such had the chief command of the fortified places built by the Hungarians for the defence of the Lower Danube. After that he became Voyvode of Transylvania, the civil and military governor of the southeastern corner of the Hungarian kingdom.

Before, however, he had reached these dignities he had fought a succession of battles and skirmishes with such success that for the fanatical Turkish soldiery his form, nay, his very name was an object of terror. It was Huniades alone whom they sought to slay on the field of battle, well persuaded that he once slain they would easily deal with the rest of Hungary. Thus in 1442 a Turkish leader, named Mezid Bey, burst into Transylvania at the head of 80,000 men in pursuance of the sultan's commands, with no other aim than to take Huniades dead or alive.

Nor indeed did Huniades keep them waiting for him. He hurried at the head of his troops to attack the Turkish leader who was laying siege to Hermannstadt. Upon this Mezid Bey, calling his bravest soldiers around him, described to them once more Huniades' appearance, his arms, his dress, his stature, and his horse, that they might certainly recognize him. "Slay him only," he exclaimed; "and we shall easily deal with the rest of them; we shall drive them like a flock of sheep into the presence of our august master."

On that occasion was seen with what self-sacrificing enthusiasm his soldiers loved their heroic leader. When they learned from their spies the purpose of the Turks, they took all possible measures to secure his precious life. One of their number, Simon Kemeny, who bore a striking resemblance to Huniades, determined to sacrifice himself for his leader. He announced that he would put on Huniades' clothes and armor. The Turks would then attack him under the belief that he was the celebrated chief, and while they were thus engaged the real Huniades would fall upon them unexpectedly and put them to flight. At first Huniades would by no means consent to this plan, as he did not wish to expose Kemeny to such mortal danger; but at last seeing the great military advantages likely to accrue from it he consented.

And so indeed it fell out. As soon as the battle began, the Turks, perceiving Simon Kemeny in the garb of Huniades, directed all their force against him. Kemeny, after a stout defence, fell together with a great number of his followers, and the Turks, seeing him fall, set up a general cry of triumph and exultation. Just at this critical moment they were hotly attacked in the flank by the genuine Huniades. Thus attacked in the very moment when they imagined that they had already gained the day, the Turks were thrown into confusion and took wildly to flight. Twenty thousand corpses were left on the battle-field; among them were Mezid Bey himself, together with his sons.

Fearful was the rage of the Turkish sultan when he heard of the defeat and death of Mezid Bey, and he at once despatched another army against Huniades, which like the first numbered 80,000 men. This time, however, Huniades did not let them enter Transylvania, but waited for them at the pass, known as the Iron Gate, among the high mountains on the southern boundary of Hungary.

The Hungarian army was not more than 15,000 men, so that the Turks were at least five times as strong. But the military genius of Huniades made up for the small number of his followers. He posted them in a strong position in the rough pass, and attacked the enemy in places where it was impossible for him to make use of his strength. Thus more than half the Turkish army perished miserably in the battle. Again their commander-in-chief fell on the field together with six subordinate commanders, while two hundred horse-tail standards fell into Huniades' hands as trophies of his victory.

These two splendid victories filled all Europe with joy and admiration. Christendom again breathed freely; for she felt that a champion, sent by a special Providence, had appeared, who had both the courage and the ability to meet and to repel the haughty and formidable foe. But Huniades was not content with doing so much. He thought that by this time he might carry the war into the enemy's country. The plan of operations was exceptionally daring, yet Huniades had not resolved on it without careful consideration. In the meantime through Huniades' exertions, Vladislaus, the young King of Poland, had been elected King of Hungary. Huniades gained the new king over to his plans, and by this means secured the co-operation of the higher aristocracy and the armed bands which they were bound to lead into the field at the king's summons. Huniades counted besides on the assistance of Europe; in the first place on the Popes, who were zealous advocates of the war against the Mohammedans; next on Venice, which as the first commercial city and state at that time had suffered severe losses owing to the spread of Turkish dominions; on the gallant Poles whose king now wore the Hungarian crown; and lastly upon the peoples of Christendom in general, whose enthusiasm for a war against the infidels had been quickened by the report of Huniades' victories. And indeed at his request the Pope sent some small sums of money, the Poles furnished an auxiliary force, while numerous volunteers from the rest of Europe flocked to serve under his banner. Although the assistance thus furnished was comparatively unimportant, it nevertheless served to increase his zeal for the daring undertaking. He and his heroic companions were not only proud of defending their own native country, but felt that they were the champions of all Christendom against Ottoman aggression, and their religious enthusiasm kept pace with their patriotism. If they did not get regiments sent to their aid, they felt that the eyes of all Europe were upon them, ready to grieve at their possible ill success, while their victories would be celebrated by Te deums in the cathedrals of every capital in Europe.

The aggressive campaign was commenced without delay; Huniades' resolves were at once translated into fact; he would not allow the beaten foe time to recover breath. His plan was to cross the Danube, and penetrate through the passes of the Balkan to Philippopolis, at that time the capital of the sultan's dominions, where he kept the main body of his army. About Christmas, a season in which the Turk does not like to fight, amid heavy snow and severe cold, the Hungarian army of about thirty thousand men pressed forward. Huniades marched in advance with the vanguard of 12,000 picked men; after him the king and the Pope's legate, with the rest of the army. The sultan, however, with a large body of men had occupied the passes of the Balkans and prevented their farther advance. This impediment, coupled with the cold and severe weather, depressed the spirits of the troops, worn out with fatigue. Huniades, however, raised their spirits by gaining a victory; lighting one night upon a body of the enemy, 20,000 in number, he attacked them at once and after a few hours' struggle succeeded in dispersing them. Later on he took two large towns with their citadels; and in three engagements triumphed over three separate divisions of the enemy. Learning that a still larger body of Turks was attempting to cut off his communications with the king's army he attacked that also and put it to flight. After that he joined his corps with the main army under the king; and indeed none too soon. Sultan Murad suddenly arrived with the main body of his forces, which he strongly intrenched in the narrowest passes of the Balkans. Huniades saw that these intrenchments could not be forced, and did all he could to entice his enemy down into the plain. This he succeeded in doing. In the battle that ensued the king too played a conspicuous part and received a wound. In the end, however, the Hungarians gained the victory, and the younger brother of the Grand Vizier was taken prisoner. So much success was sufficient for Huniades for the time, especially as the natural obstacles had proved insurmountable. The Hungarian army returned home in good order, and the young king made a triumphal entry into his capital, preceded by a crowd of Turkish prisoners and captured Turkish ensigns. These last trophies of victory were deposited in the Coronation Church in the fortress of Buda.