Rogue One is the eighth live-action Star Wars movie. It's the first movie in the Star Wars anthology series, and its story happens between Star Wars Episodes III and IV, which is to say that it happens just before the very first Star Wars movie.
Confused yet? That's okay. We'll explain.