During the reign of Afonso II, when the king continued to provoke the ire of the Papacy, Portuguese knights attacked the Galician tenancy of his half-brother Martin Sanches (who lived in the kingdom of Alfonso IX of León), possibly since the Bishop of Braga had estates in that region. Provoking Sanches to invade northern Portugal. The Leonese fought battles in Barcelos, Braga and Guimarães, where they defeated Portuguese forces, before retiring to Galicia with their spoils. At the same time, Alfonso IX of León seized Chaves, which remained in Leonese hands until the reign of King Sancho II, when he and Ferdinand III met in 1230/1231. This was likely a self-serving decision on Fernando's part, as he was fearful that Leonese barons would support Sancho against him. Alfonso IX continued to occupy Chaves as a method of ensuring his wife, Teresa, would be able to enjoy her properties in Portugal.