Answer
18 years. Wei Jingsheng, a prominent Chinese dissident and human rights activist, spent a total of 18 years in prison as a political prisoner. He was first imprisoned in 1979 for his involvement in the Democracy Wall movement and was released in 1993. He was then imprisoned again in 1994 and released in 1997.