Born on Cuba, he was sent to mainland Spain to join the Asturias Regiment as a cadet in 1783. He first saw action, as a second lieutenant, in Oran, where he was wounded. He later had to be rescued from the rubble following the 1790 Oran earthquake.[2]
Seconded to the Army of Navarra, he saw action in several combats against French forces in the French Revolutionary Wars. Captured in July 1793, he was held prisoner until the following year.[2]
Back in Spain, he was promoted to major in 1808 with orders to join the Princess's Regiment stationed in Denmark. However, the events leading up to the Dos de Mayo Uprising caught him in Madrid and his earlier collaboration with O’Farrill, now a member of the provisional Supreme Central Junta, enabled him to accompany Evaristo Pérez de Castro to Bayonne at the end of April 1808 with the mission of contacting members of the circle close to Fernando VII, then being held in captivity by Napoleon. The mission was aborted when, on crossing the border into France they were detained and sent back to Spain.[2]
Back in Madrid, Zayas was then ordered to La Coruña to oversee the embarking of troops bound for Buenos Aires, but he stopped in Valladolid to join the forces the Captain-general of Old Castile, García de la Cuesta, was recruiting there. Cuesta appointed Zayas Major-general of Infantry,[2] and he fought at Cabezón (June 1808), the first battle of Spain's War of Independence,[2] and a resounding defeat for the Spanish forces.
He was then sent on to La Coruña to ensure the Junta de Galicia's support for Blake's Army of Galicia. In mid-July, the combined forces of Blake and Cuesta were heavily defeated by a smaller French force under MarshalBessières
at Medina de Rioseco. The defeat, due mainly to the lack of co-ordination between the two military commanders, was mitigated only by Zayas' strategic retreat towards Salamanca.[2]
The following August Zayas was promoted to colonel. With the Supreme Central Junta's lack of confidence in Cuesta, the Army of Castile was dissolved and what remained, including Zayas, was incorporated into the newly formed Army of the Centre, led by Castaños.[2]
Zayas was again on the losing side, the following November, at Tudela and, again, at Bubierca.[2]
In December, what was left of the Army of the Centre, now under the orders of the Duke of the Infantado, Pedro de Alcántara Álvarez de Toledo, regrouped in Cuenca, with Zayas participating at Tarancón, the first time these troops were able to score a major victory by repeling several French cavalry attacks.[2]
With Cuesta rehabilitated and appointed commander of the Army of Estremadura, he requested the services of Zayas who, at the beginning of January 1809, was given the command of the Jaen Regiment which fought at Mesas de Ibor (17 March 1809), and covered the Army of Estremadura's retreat from said battle.[2]
He was again wounded, this time at Medellín (March 1809), while leading an attack on an enemy battery.[2]
Promoted to brigadier the following month, Zayas was given command of the Army of Estremadura's vanguard,[2] at the head of which he fought at Talavera (July 1809), and following which he was promoted to field marshal.[2]
The following September, the vanguard commanded by Zayas, by now considered the army's best unit,[2] was incorporated into the Army of the Centre and would participate at Ocaña (November 1809) where, despite the routing of the Spanish forces, Zayas' vanguard was able to cover the disorderly retreat.[2]
In March 1810 Zayas managed to reach Cádiz, where he was able to concentrate on training his troops.[2] On 15 August 1810, at the head of the 4th Division (Infantry) of the Army of the Centre stationed at Cadiz and Isla de León, Zayas had an effective force of 342 officers and 5,661 troops.[3] By September, his infantry division had increased to an effective force of 530 officers and 7,376 troops.[3]
In early March 1811, Zayas participated at Barrosa, near Cadiz.[2] By the beginning of May 1811, his division, now incorporated into the 4th Army, had been reduced to an effective force of 278 officers and 5,878 troops.[3] Later that month, Zayas' division fought at Albuera under the orders of Blake,[2] with Zayas' troops once again standing out as "fortunately for the Allies, their flank was now held by the best Spanish troops on the field: battalions that had been drilled and trained for months... by Zayas himself".[4]
In April 1811, Zayas was sent with his six thousand men to join Ballesteros in Estremadura. However, on landing at Moguer, Zayas was forced to retreat when faced by the seven battalions and two regiments of cavalry under General Maransin that MarshalSoult had sent to intercept them.[1]
Later that year, still under Blake's orders, his division was transferred to the Levante to participate in the defence of Valencia.[2]
He distinguished himself at Saguntum (October 1811),[2] where he led a 2,550-strong division of Blake's 1st Army ("Expeditionary Corps")[5] and in December at the defence of Mislata,[2] but in January 1812, when the Siege of Valencia came to an end, with Blake capitulating to Marshal Suchet, Zayas and Blake were taken prisoner and interned at Vincennes.
Zayas was released in December 1813 in order to accompany the Duke of San Carlos in negotiating the return of Ferdinand VII before the Cortes. Finally, however, Zayas only accompanied the King on his return to Spain. He was promoted to Lieutenant general in March 1814.[2]
In July 1820 he was appointed deputy in the Cortes for La Habana and, at the end of that same month, captain general of Estremadura.[2]
On 7 July 1822, Zayas participated in the defence of the Royal Palace of Madrid during the failed coup d'etat carried out by the Absolutist forces[2] and in 1823, at the head of the liberal government's troops in Madrid, refused to hand the city over to the Duke of Angoulême's Royalist troops, combatting them until the Duke himself arrived at the head of the so-called army of the Hundred Thousand Sons of Saint Louis towards the end of May. Forced to flee, Zayas took refuge in Málaga.[2]
On 30 May 1823, Zayas was stripped of all his posts and honours and in November 1826, he was declared an "impure liberal and mason".[2]
Zayas died in Chiclana in 1827. A royal decree of 2 August 1840 restored all his previously held posts and honours.[2]