After amputation, freshwater planarians properly regenerate a head or tail from the resulting anterior or posterior wound. The mechanisms that differentiate anterior from posterior and direct the replacement of the appropriate missing body parts are unknown. We found that in the planarian Schmidtea mediterranea, RNA interference (RNAi) of β-catenin or dishevelled causes the inappropriate regeneration of a head instead of a tail at posterior amputations. Conversely, RNAi of the β-catenin antagonist adenomatous polyposis coli results in the regeneration of a tail at anterior wounds. In addition, the silencing of β-catenin is sufficient to transform the tail of uncut adult animals into a head. We suggest that β-catenin functions as a molecular switch to specify and maintain anteroposterior identity during regeneration and homeostasis in planarians.