Complex sentence: Unhappy with political environment in Madrid and longing for his homeland, after the assassination of Canovas in 1897 he returned to Galicia, where he married María del Carmen Ramón being appointed Municipal Judge in Arteixo.
Split into simpler sentences: Unhappy with political environment in Madrid and longing for his homeland, after the assassination of Canovas in 1897, he returned to Galicia. He married María del Carmen Ramón and he was appointed Municipal Judge in Arteixo.