Work on the Forbidden City was begun under the third Ming ruler in 1407; it remained the emperor's residence until 1911.