The subsequent Portuguese Restoration War against Philip III () consisted mainly of small skirmishes near the border. The most significant battles were the Battle of the Lines of Elvas (1659), the Battle of Ameixial (1663), the Battle of Castelo Rodrigo (1664), and the Battle of Montes Claros (1665); the Portuguese were victorious in all of these battles. However, the Spaniards won the Battle of Vilanova (1658) and the Battle of the Berlengas (1666). The Battle of Montijo (1644) was indecisive, starting out with great Spanish success and ending with Portuguese success; the number of casualties were nearly equal.