Sensory systems define an animal's capacity for perception and can evolve to promote survival in new environmental niches. We have uncovered a noncanonical mechanism for sweet taste perception that evolved in hummingbirds since their divergence from insectivorous swifts, their closest relatives. We observed the widespread absence in birds of an essential subunit (T1R2) of the only known vertebrate sweet receptor, raising questions about how specialized nectar feeders such as hummingbirds sense sugars. Receptor expression studies revealed that the ancestral umami receptor (the T1R1-T1R3 heterodimer) was repurposed in hummingbirds to function as a carbohydrate receptor. Furthermore, the molecular recognition properties of T1R1-T1R3 guided taste behavior in captive and wild hummingbirds. We propose that changing taste receptor function enabled hummingbirds to perceive and use nectar, facilitating the massive radiation of hummingbird species.