Complex sentence: Margáin served as municipal president (mayor) of San Pedro from 1994 to 1997 and then from 1997 to 1999 he served in the cabinet of Governor Fernando Canales.
Split into simpler sentences: Margáin served as municipal president (mayor) of San Pedro from 1994 to 1997. Later, from 1997 to 1999, he served in the cabinet of Governor Fernando Canales.