Complex sentence: Sadly, Ippolita died a mere four years after their marriage, while Castiglione was away in Rome as ambassador for the Duke of Mantua.
Split into simpler sentences: Sadly, Ippolita died a mere four years after their marriage. At that time Castiglione was in Rome again as an ambassador for the Duke of Mantua.