The Harry Potter books and movies are set in the 1990s. The main story arc of the talented Hogwarts student and his friends spans from 1991 to 1998.