Answer
Treason was the accusation leveled against Wei Yan before his untimely demise. This serious charge stemmed from his alleged plotting against his superior, Zhuge Liang. Wei Yan's actions, such as disobeying orders and engaging in unauthorized military maneuvers, were interpreted as evidence of his disloyalty.