Velasquez was the court painter to the Hapsburg king Philip IV of Spain,so that's why he painted the royal family and other prominent people at the Spanish court.
His best known painting is 'Las Meninas' a picture of the Infanta Margarita and her entourage painted in 1656.