Thirst drives animals to reinstate water homeostasis by fluid intake. An increase of blood osmolality is thought to induce thirst by activating a thirst receptor expressed in the subfornical organ (SFO), but the molecular identity of this receptor remains elusive. Here, we provide behavioral and functional evidence to show that TMEM63B functions as a mammalian thirst receptor in the SFO and mediates osmotic and dehydrated thirst. First, we showed that TMEM63B is expressed in SFO excitatory neurons and required for the neuronal responses to hypertonic stimulation. Heterologously expressed TMEM63B is activated by hypertonic stimuli and point mutations can alter the reversal potential of the channel. More importantly, purified TMEM63B in liposomes establishes osmolarity-gated currents. Finally, Tmem63b knockout mice have profound deficits in thirst, and deleting TMEM63B within the SFO neurons recapitulated this phenotype. Taken together, these results provide a molecular basis for thirst and demonstrate TMEM63B is the long-sought mammalian thirst receptor.