The son of a wealthy family of merchants of Pescia, his elder brother was the Egyptologist Ippolito Rosellini. He studied mathematics at the University of Pisa, and mathematical physics at the University of Florence under Leopoldo Nobili.[1]