Both! While majority of Yellowstone National Park is in Wyoming, it also stretches north into Montana. Fun fact-- a small portion of the westernmost side of Yellowstone is in Idaho!