The Bighorn Basin and the Absaroka Mountains were lands of the Crow (Apsáalooke), Shoshone and other nations. William F. "Buffalo Bill" Cody, the showman whose Wild West show toured the world, founded the town in 1896 with partners and built the Irma Hotel (1902), named after his daughter. He pushed for the road to Yellowstone's East Entrance and for irrigation of the basin; the Buffalo Bill Dam was completed in 1910.
During the Second World War the US government held about 14,000 Japanese Americans at the Heart Mountain camp between Cody and Powell; its interpretive centre tells their story.