 He was born to a noble Sardinian family when the kingdom of Sardinia was part of the Spanish crown.He belonged to a noble Sardinian family originating from Valencia.When he was young, he probably fled to Spain, where he got an attentive military and policy education.