From the Super Mario Wiki
Retrieved from "http://www.mariowiki.com/index.php?title=Star_Door&oldid=1848862"
Star Doors have appeared in Super Mario 64 and its sequel Super Mario 64 DS inside Peach's Castle. Like most locked doors in these games, a certain number of Power Stars must be obtained before they can be opened (although Star Doors require many more Power Stars than regular doors). Once unlocked, the doors will slide open allowing Mario to enter.
Four star doors exist in the games: