Sentence:  Kings came to hear [Vivaldi's] concerts but in the end he ran <WSD>afoul</WSD> of the Pope's nuncio and fell out of favor, presumably for neglecting to say Mass ... 
Meaning of the word marked with <WSD> tags:  In a state of entanglement or conflict (with).