The archerfish is unique in its ability to hunt by shooting a jet of water from its mouth that hits insects situated above the water's surface. To aim accurately, the fish needs to overcome physical factors including changes in light refraction at the air-water interface. Nevertheless, archerfish can still hit the target with a high success rate under changing conditions. One possible explanation for this extraordinary ability is that it is learned by trial and error through a motor adaptation process. We tested this possibility by characterizing the ability of the archerfish to adapt to perturbations in the environment to make appropriate adjustments to its shots. We introduced a perturbing airflow above the water tank of the archerfish trained to shoot at a target. For each trial shot, we measured the error, i.e., the distance between the center of the target and the center of the water jet produced by the fish. Immediately after the airflow perturbation, there was an increase in shot error. Then, over the course of several trials, the error was reduced and eventually plateaued. After the removal of the perturbation, there was an aftereffect, where the error was in the opposite direction but washed out after several trials. These results indicate that archerfish can adapt to the airflow perturbation. Testing the fish with two opposite airflow directions indicated that adaptation took place within an egocentric frame of reference. These results thus suggest that the archerfish is capable of motor adaptation, as indicated by data showing that the fish produced motor commands that anticipated the perturbation.