Answer
Treason was the primary accusation leveled against Wei Yan. This grave charge stemmed from suspicions that Wei Yan harbored secret ambitions and was plotting against his superior, Zhuge Liang. Wei Yan's alleged disloyalty was believed to have manifested in his independent actions and disregard for orders during the Northern Expeditions.