Farini was initially a republican and a supporter of Giuseppe Mazzini. Later he became a monarchist and member of the "Historic Right". In 1851 he was, for a few months, Minister of Education of the Kingdom of Sardinia in the government led by Massimo D'Azeglio.