 After return to Min, Pan Chengyou served in its government, eventually becoming the deputy chief judge of its supreme court (大理少卿, "Dali Shaoqing").Sometime after 941, when then-King (shortly after, emperor) of Min, Wang Xi (Emperor Jingzong), created his brother Wang Yanzheng, who then controlled the important city of Jian Prefecture (建州, in modern Nanping, Fujian), the Prince of Fusha as well as the military governor of Zhenwu Circuit (鎮武, headquartered at Jian Prefecture), Wang Yanzheng invited Pan to serve on his staff, making Pan his assistant in financial matters (度支判官, "Duzhi Panguan").At that time, despite the brief détente (that led to Wang Xi's creation of those titles for Wang Yancheng), Wang Xi and Wang Yanzheng had been engaged in a long-time military conflict.