 Unsatisfied with the royal court's organization, Gu resigned and returned to his hometown.In 1655, local officials laid charges against him and threw him into prison.He was released from prison with the help of a friend.