Complex sentence: He spent most of his career as court poet and close friend of Boniface I of Montferrat, with whom he served in battle against the communes of Asti and Alessandria.
Split into simpler sentences: He spent most of his career as court poet and close friend of Boniface I of Montferrat. He served with him in action against the communes of Asti and Alessandria.