Don Juan died in October 1578 and was replaced as commander of the Spanish Army of Flanders and royal governor-general by Alexander Farnese, Duke of Parma, who proved an able diplomat, adept at driving wedges between the Catholic nobles in the South and the regime of Orange and the States General .