The cause of overactive bladder is largely unknown and there is currently no effective therapy. Gaoet al. show that a membrane protein Pirt controls bladder emptying by inhibiting the neuronal purinergic receptor P2X3 and that treatment with a small Pirt fragment prevents bladder overactivity in mice.