Phantasy Star IV, released in Japan as Phantasy Star: The End of the Millennium (ファンタシースター 千年紀の終りに), is a role-playing video game released for the Mega Drive/Genesis in Japan in 1993 and Europe and North America in 1995. It is the fourth and final game in the original Phantasy Star series, concluding the story of the Algol Star System. The game was also made available on the Wii Virtual Console in Japan on June 24, 2008, in the PAL regions on November 14, 2008, and in North America on December 22, 2008, for the price of 800 Wii Points. Phantasy Star IV is also part of the Sega Genesis Collection on the PlayStation 2 and PlayStation Portable and on Sonic's Ultimate Genesis Collection for Xbox 360 and PlayStation 3.

Phantasy Star IV kept many of the gameplay elements of the previous game, including turn-based battles, overhead exploration, and magic spells. The game met with mixed reviews upon its release, but has been subject to very positive critical retrospectives.