Born in Casale Monferrato to Ippolito, count of Varengo (today part of the commune of Gabiano) and the countess Veronica Pico Pastrona, he studied at a Jesuit college in Parma.