The Battle of the Lines of Elvas (), was fought on 14 January 1659, in Elvas, between Portugal and Spain during the Portuguese Restoration War. It ended in a decisive Portuguese victory.

Background

By 1659, the Portuguese Restoration War which began in 1640 had degenerated into a stalemate. Other than cross border raids, little fighting had occurred and neither the Spanish or Portuguese armies could achieve a decisive battlefield victory. Philip IV of Spain sought to end the conflict by laying siege to and capturing a major Portuguese position, thereby luring out and destroying any Portuguese army that tried to aid the embattled garrison.

Battle of the Lines of Elvas

The town of Elvas was chosen as a target due to the threat it posed to the Spanish city of Badajoz, as seen during the Battle of Montijo in 1644 when a Portuguese army based at Elvas had crossed the border, raided Spanish towns, and attacked a Spanish army. The capture of Elvas and Fort Santa Luzia would also allow the Spanish Army to proceed down the Estremoz road to the Portuguese capital of Lisbon if they so chose. The Portuguese court was aware of the Spanish threat to the city and had greatly reinforced the strength of the city's defensive fortifications during the course of the war. However, years of only minor military action in the area had degraded the readiness of the garrison, and the city was unprepared for a siege. In addition, though the Spanish preparation for the offensive was detected, the vast majority the Portuguese Army was deployed in the north of the country in preparation for a suspected Spanish attack there.

Battle of the Lines of Elvas

In December 1658 a Spanish army commanded by D. Grandee Luis de Haro camped in the frontier of the Caia River with 14,000 infantry, 3,500 cavalry, and several pieces of artillery. The Spanish preparation for the siege of Elvas took several days, time which the Portuguese used to further prepare the city defenses and call for aid. De Haro distributed his troops in trenches, giving orders to kill everyone that approached the city, and prepared his army to confront the relief force the Portuguese would inevitably send. The Spanish bombarded the city, causing panic and casualties among the civil population, while disease claimed 300 lives a day inside the walls. The siege would persist for several weeks. The only way the situation could turn in favor of the Portuguese was with the help of a relief army. Queen-Mother Luisa de Guzman decided to call for António Luís de Meneses, Count of Cantanhede, and gave him the command of all Portuguese troops in Alentejo. She also transferred to the same theater of operations Sancho Manoel de Vilhena, who assumed the post of field marshal.

Battle of the Lines of Elvas

Meneses, although facing extremely poor logistical conditions, gathered an army in Estremoz. He organized recruitment efforts in Viseu and in the Madeira islands and united the garrisons of Borba, Juromenha, Campo Maior, Vila Viçosa, Monforte, and Arronches into a single army. The gathered army had 8,000 infantry, 2,500 cavalry, and seven cannon. The Portuguese cavalry were notably led by General André de Albuquerque Ribafria, who was considered the most capable commander of the war and credited with reforming the Portuguese cavalry into an elite force. The Portuguese army left Estremoz in early January, marching to the east towards the besieged city. Rather than take the flatter main road between Estremoz and Elvas, the Portuguese instead moved to the north and east of the city. On the night of 16 January the army arrived and occupied the hills to the northeast of Elvas, from where they could see the city and the enemy lines.

Battle

On 17 January, around 8 o'clock in the morning, the Portuguese army occupied the hill of Assomada and from there began to advance on the Spanish siege lines. The advancing forces were shrouded by a thick fog as they moved into the valley in front of the Spanish lines. Around 8 o'clock in the morning, the Portuguese attacked the Spanish army near the village of Murtais (possibly by a stream of the same name), where the Portuguese infantry fought with such ferocity that the Spanish were driven from that segment of their trenches. When the Spanish cavalry moved to intervene, the Portuguese cannon fired into them. Using his infantry in conjunction with his artillery, Meneses was able to stall several Spanish cavalry charges.