尚方 was the imperial workshop that forged weapons exclusively for the emperor. A
尚方剑 (also
尚方宝剑) was a sword from this workshop personally granted by the throne, carrying delegated power to punish — even to execute officials — without further approval. Famous in Ming-dynasty stories of upright officials like Hai Rui (
海瑞) and in Beijing-opera plays such as 《
打銮驾》.