The Forbidden City served as the seat of imperial power during the Ming and Qing dynasties (1368-1911).