Now we come to a period of Lopez's career which it is difficult to harmonize with the whole story of his after life. The only plausible explanation seems to be that he was only a boy, and that Bolivar's army was suffering such reverses that the only way in which Lopez could save his own life was by joining forces with the Spaniards, which he did. One would have thought that after the valiant part he played in the defense of Valencia, he would cast his lot with the insurgents. No writer of the period gives us any real explanation of his course. But whatever the motive, Lopez became a Spanish soldier, a fact which later was to be of tremendous value to him, because it enabled him to visit Spain, to rise high in the service, to hold exalted positions in the Spanish court, and to obtain an insight into the cruelties and injustices perpetrated by the men who were the oppressors of the country which he was to adopt as his own, and the salvation of which he was to make his life work, which he could have gained in no other way. His action may have been precipitated by the fact that the people of Valencia did not understand the straits in which Bolivar found himself, but felt that he had deliberately deserted them.
Through the long struggle which ended in the evacuation of Caracas by Spain in 1823, Lopez fought with the Spaniards. So brilliant was his service that he was at the age of twenty-three given the rank of major. The story is told that early in the war, when he was a mere private, in an attack against a position which was defended by field works, the Spanish forces were divided, in an effort to take two bastions upon the capture of which victory depended. But there was not sufficient ammunition, and that of one of the divisions became exhausted, so that it was necessary to obtain a fresh supply from the other division. This information was signaled, and the leader of that portion of the attackers which must now supply the other, called for volunteers. In order to get the relief through it was necessary to lead three mules, which were tied together Spanish fashion, the head of the second mule to the tail of the first one, and the head of the third to the tail of the second, past a position where they were exposed to the hot fire of the opposing army. Lopez volunteered. When he reached the most dangerous part of his course, the mule in the center was struck by the enemy's fire and fell dead. Lopez did not hesitate, but with the bullets singing about him—the insurgents in that party must have been singularly bad marksmen, or perhaps their guns were not of an efficient pattern—he cut out the dead animal and, tying the two remaining mules together, safely reached his destination and delivered the ammunition to the commander. He was not injured, but his gun had been broken by a chance shot, his clothes were riddled with bullets, one of which had passed through his hat within an inch of his head, and both of his mules were so severely wounded that they had to be shot. His action gave the victory to the Spanish. This exploit won for Lopez the offer of an officer's commission, but he was modest in his estimate of his own ability, and he felt that he was too young for the honor, and so he refused, with the request that he might be taken from the infantry and placed in the cavalry. So, in spite of his disposition to make light of his own achievements, and almost against his own will, he found himself at nineteen the commander of a squadron of horsemen. It was a force of picked men, most of them older than Lopez, and it had the reputation of never having shown its back to the enemy. From the command of this company, Lopez was elevated to the rank of major.
Now Lopez had made many friends in the Spanish army. All through his career he had the ability to make men believe in him, love him and be ready to follow wherever he led. The high honors which had fallen to his lot seemed not to have incited jealousy among his companions; indeed on the other hand he was urged by his friends to apply for the cross of San Fernando, to which they believed he was entitled. Again that curious quality in Lopez which did not make him shrink from deeds of bravery, but which did make him draw back from demanding their reward, asserted itself. The cross of San Fernando was a very great honor, and it was not bestowed as a free gift, but when a man performed some action of unusual courage he might publicly demand it, and anyone in the army who cared to do so was free to enter their opposition, by proving, or trying to prove, that the deed for which the cross was demanded was not of such a character as to merit such a reward. In the whole Spanish army in Cuba at that time, only one individual had succeeded in obtaining the cross of San Fernando. While Lopez hesitated, his commander in chief, General Morillo, had the application drawn up and personally insisted that Lopez sign it. After a rigid inquiry into the merits of this petition, which was backed up by the endorsement of his comrades and of Morillo himself, the cross was granted.
But it was no more than common justice that Morillo should take this stand, for far better than anyone else had he cause to be grateful for the bravery of this twenty-three year old boy. The larger part of the Spanish army at this time was infantry, while the army of the insurgents was largely cavalry. The natives knew the country, and were able to carry on a successful guerrilla warfare, without allowing the Spaniards to engage them in open battle. This harassed the Spaniards, wore down their morale, and slowly but surely decimated their forces. Morillo, well knowing this, was pursuing the insurgents, in a vain attempt to join them in conflict. Lopez at this time was in charge of his cavalry company, which had been almost exterminated in a conflict that morning. Only a little band of thirty-eight men remained. Morillo was not aware of the catastrophe which had overtaken Lopez's command, and did not know how greatly it had been reduced in numbers. He therefore issued orders that it gallop forward to attack the enemy in the rear, with an idea of forcing them to face about and give battle. The engagement took place on the plains, and the handful of men could be plainly discerned by the enemy as they rode to obey their commanding officer. General Paez, who was in command of the Venezuelans, sent a corps of 300 men to repel the thirty-eight cavalrymen. Neither Lopez nor his men faltered, for they must live up to their traditions. Lopez ordered them to dismount and engage the advancing enemy on foot, using lances and carbines in the attack. Morillo soon discovered what was in progress and sent reinforcements, and Lopez's men held their position until aid reached them.
When this war was over and freedom had been won an extraordinary thing happened. The patriot government invited this young man, who had fought against them, to enter their service with the same rank which he had held in the Spanish army. This he declined, and when evacuation took place he retired with the Spanish army to Cuba, in 1823.
Lopez married a very charming Cuban, adopted Cuba as his native land, and gave up his position in the army. Perhaps the cruelty of the Spanish government in Cuba may have awakened him to the nature of the organization which he was serving. He was at heart a man who loved freedom, who was impatient of unjust restraint, who loved his fellow men and could not bear to see them suffer injustice. Spain was afraid that her officers might be led away by the spirit of democracy which was creating such havoc in her possessions in America. When absolutism was again restored in Spain, and the constitution of 1812 was for the second time overthrown, she required her officers in Cuba publicly to adjure liberalism, and to take an oath to stand by the Spanish rule in the colony. This Lopez could not bring himself to do, and so he remained in retirement.
Affairs in Spain underwent a change, for King Ferdinand died and immediately a contest for the control of the government was on between his widow, Maria Cristina, as regent for her infant daughter, Isabel, and Don Carlos, who was the brother of the deceased king, and who declared that under the Salic law the crown belonged to him. War between the two factions seemed imminent, and the Spanish people were war weary, when the Queen regent conceived a brilliant plan. She felt sure that the will of the people was with her, since she represented the liberal party as against Don Carlos who was at the head of the absolutists and whose accession of power would mean new oppressions. Maria Cristina therefore issued a proclamation calling on the people, if they loved their country and wished to save her from civil war, to join in disarming the absolutists. This movement was well organized and a day was set for the disarmament to take place all over the kingdom. It seems almost incredible, but it was successful, and from one end of Spain to the other there were over six hundred thousand stacks of arms taken from the Carlists by the people of the liberal party.
Now while this action was being planned and executed, Lopez happened to be in Spain. He had gone to the court at Madrid with his wife to endeavor to have restitution made to her of large sums of money which the government of Cuba had unjustly taken from her family. Unfortunately there are no records which disclose whether his diplomacy was great enough to persuade Spain to return any money which had once gotten into her coffers. However, Lopez had grown to understand Cuban affairs by this time well enough to know that if the liberals were successful it might mean the reestablishment of the constitution of 1812, and the dawn of better days for Cuba; but on the other hand, should the Carlists triumph, Cuba was bound to be more fiercely ground beneath the heel of tyranny and oppressions. Lopez loved his adopted country, and so he at once took command of a body of liberals who were being hard pressed by a company of the national guard, part of which had sided with Don Carlos. He rallied the little band, filled them with new courage and enthusiasm, and all day he worked with them, sometimes in company with other men and often alone, driving before him companies of Carlists, forcing them to go to the guardhouse of the liberals and surrender their weapons. When news of this conduct reached royal ears, Lopez was made first aide-de-camp to General Valdez, who was commander in chief of the liberal forces, that same Valdez who was destined later to become Captain-General of Cuba. A strong friendship sprang up between the two men, a bond which was never broken, and which Lopez respected so much that he later deferred action against the Spanish government in Cuba until after Valdez had relinquished the office of Captain-General. Indeed, it was through the influence of Lopez at the court of Spain that Valdez became Captain-General.
Valdez had many reasons for being grateful to Lopez, for during the war which followed between the forces of the queen and those of Carlos, at one crisis—a surprise attack when the troops were about to flee—Lopez placed himself in command and led them to victory. On another occasion Valdez, who had his headquarters in the little village of Durango, had dispatched the main portion of his army against the forces of the enemy, retaining with him only a few picked men. Suddenly he found himself almost surrounded by the Carlists, who had seized the hills by which the village was enclosed. It was necessary that someone carry news of the situation to the main army and obtain relief. Lopez, who was then a colonel, signified his willingness to undertake the task, and indeed claimed that it was his right as first aide-de-camp to command the rescuing party which he intended to bring back with him. Valdez was loath to let him go, for he felt that success was problematic, and that the expedition meant almost certain death for his friend. But there was no alternative, and so at last he consented. Lopez set forth on horseback with one servant attending him. When they approached the enemy, they signalled that they were deserters, with valuable information to impart. They were allowed to approach without being fired on, and when they came abreast of the opposing forces, they set spurs to their horses, ran the gauntlet of a shower of bullets, and escaped unhurt, bearing the news of Valdez's perilous position to his main army.
So great was Lopez's valor and fearlessness, and so high a reputation had he for honor and fair dealing, that he was respected by the Carlists as well as by his own party. At the end of this struggle he was accorded the rank of General in the Spanish army, and was loaded with honors, having the crosses of Isabella Catolica and St. Hermengilda bestowed upon him, and being appointed commander in chief of the National Guard of Spain. He stood high in the regard of the Queen Regent, but he grew to know her as she was, a cold, selfish plotter, and when she was finally expelled from the regency Lopez regarded it as a cause for rejoicing, even though his own career might be expected to suffer. But the regard in which he was held was too great for this to come to pass, and after the insurrection which deposed Maria Cristina he was offered and accepted the post of Governor of Madrid.