This article examines China’s first women’s prison in the context of diplomatic disputes, legal reforms, and gender order at the turn of the twentieth century. It shows that the custody of female offenders in the Shanghai International Settlement became a battleground in which the interests and perceptions of late imperial China and the Western authorities clashed. Under pressure from the Western authorities, the first Chinese women’s prison was established in 1907, even prior to the formal introduction of custodial sentences into China’s criminal code. Notably, the Chinese officials did not embrace prison as a more benevolent punitive institution; rather, they saw it more as a tool to consolidate its judicial sovereignty and preserve gender norms. For Chinese women, the prison, functioning as a re-cloistered feminine space, further entrenched the confinement of their bodies, thereby perpetuating rather than changing orthodox values of female chastity. This article questions the universal modernity of European penalties by pointing out that the introduction of imprisonment as a supposedly more civilized and humane form of punishment may have placed Chinese women at a greater disadvantage.