The family of Sandoval was ancient and powerful. Lerma was born and raised at Tordesillas. As long as Philip II lived, the nobles had little effective share in the government, with the exception of a few who were appointed viceroys or commanded armies abroad. The future duke of Lerma passed his time as a courtier, and made himself a favourite with the young prince Philip, heir to the Spanish throne. The dying king Philip II foresaw that Lerma was one of those nobles who were likely to mislead the new sovereign. The old king's fears were, it is claimed by some, fully justified after his death. Others however, claim that Lerma was a fully capable favourite, as he led Castile and the Habsburg dominions on a more modest and economically viable course of peace than both Phillip II and Olivares during the reign of Phillip IV – both figures that have received far more positive recognition by historians.