He was hired by king Felipe IV and became an amazingly perceptive court painter and, quite simply, the greatest Spanish artist of the Golden Age.
King Felipe fired him because he was the worst Spanish artist at the time.