A wheel loader includes: a front frame; a bucket; a boom having a distal end connected to bucket, and a proximal end rotatably supported by front frame; a sensor configured to measure a distance between boom and a loading target; and a controller configured to control an action of wheel loader. The controller causes wheel loader to perform a predetermined action for collision avoidance on condition that a distance to be measured by sensor when wheel loader travels takes a value less than or equal to a threshold value.