Until the mid-20th century, most Chinese people spoke only their local language. But the Ming and Qing dynasties defined a common language based on Mandarin. It was known as "Guānhuà" (官話, "speech of officials"). Knowledge of guanhua was essential for a career as a government official.