驸马 originally meant an official (
驸马都尉) who managed the emperor's spare horses (
驸 = extra horse in a team). From the Wei-Jin period onward the title was conferred on emperors' sons-in-law and eventually became the standard term for the princess's husband.