He studied law in Padua and then practised in Florence. He returned to Corfu where he worked as a lawyer and was distinguished for his scientific training and his rhetorical ability. He was a member of the Ionian Academy (1809). He was initiated into the Society of Friends by his brother Kapodistrias Viaros. He became an associate of the Governor, who appointed him a member of the Panhellenic and a member of the War Court.
He was subsequently appointed Minister of Justice (1829). He participated in the drafting committee of the Civil, Criminal and Procedural Code. He introduced important legislation. In 1833 he was elected as a representative of Corfu in the Fourth Parliament. In the same year he was elected Attorney General of the Ionian State. He wrote in Italian legal treatises and in Greek the legal work on Civil and Criminal Procedure.
He was a member of the council of the Great East.