sentences:  The disagreement will would lead to a lengthy legal dispute that lasted until 1744 .After the siege of Barcelona 1706, Austrian troops advanced without opposition to conquer Madrid, but withdrew soon after when the troops of Philip V, reinforced in France, crossed the border.They continue advancing until the Battle of Almansa.