His early education was received in Rimini from the brothers Speranza, priests.
In Nov., 1846, his superior appointed him professor of philosophy and physics at the college of Urbino, while two months later the Papal Government called him also to the chair of physics in the university of the same city.