From the Super Mario Wiki
Ghost Houses, listed in the Super Mario World manual as Haunted Houses, are large buildings where Boos and other ghosts live. They first appeared in Super Mario World and soon appeared in later Mario platformer games such as New Super Mario Bros. and New Super Mario Bros. Wii. Unlike most other "Mario" levels, Ghost Houses are primarily puzzle-based, requiring the player to find the correct path in order to progress.
 Super Mario series
 Super Mario World
Ghost Houses first appeared in Super Mario World, where there were six Ghost Houses in Dinosaur Land: two in Donut Plains, one inside the Vanilla Dome areas, one in the Forest of Illusion, one on Chocolate Island, and one in Valley of Bowser. As with Castles, Yoshi will stay outside of the Ghost House when Mario or Luigi enters. The given reason is Yoshi's fear of ghosts, but the technical reason is because the doors inside ghost houses (and castles) can't be entered while riding Yoshi, and some enemies located inside do not work properly with Yoshi.
Whenever Mario completes a ghost house, the game can be saved, regardless of whether the stage has already been beaten. As Mario can replay the ghost house stages at any time, this is an easy way to save the game whenever the user wishes.
 New Super Mario Bros.
Several Ghost Houses are in New Super Mario Bros.; these introduced more new ghost species such as the Phantom Hand and Broozer. The game also introduced the Ghost House quirk of having Boos cover up the bottom screen while Mario or Luigi was inside a Ghost House. There are four in the game, located in World 3, World 4, World 5, and World 7.
 New Super Mario Bros. Wii
The Ghost Houses from the previous game re-appeared in New Super Mario Bros. Wii, this time with Boos flying around them, just like in Super Mario World. They are located only in World 3, World 4, World 5 and World 7. Some Ghost Houses introduces new enemies like Scaredy Rats and Ghost Vases and most of them have many fake walls.
 Super Mario 3D Land
In Super Mario 3D Land, Ghost Houses are found in World 4, World 6, World 8, Special 4, Special 5 and Special 6 of the game.
 New Super Mario Bros. 2
Ghost Houses reappear in New Super Mario Bros. 2 for the Nintendo 3DS containing Boos, Peepas, and the colossal Boohemoth. There are 7 Ghost Houses in the game, one in each world, excluding World 1 and World Star. Like New Super Mario Bros., Boos once again cover up the bottom screen when Mario or Luigi is in a Ghost House.
 New Super Mario Bros. U
There are four Ghost Houses in New Super Mario Bros. U, one in Sparkling Waters, one in Frosted Glacier, another in Soda Jungle, and one in Meringue Clouds. Soda Jungle's haunted section features haunted courses like Painted Swampland. There is also a Ghost House-related Challenge Mode course, The Haunted Propeller.
 Other appearances
The mansion of Big Boo's Haunt of Super Mario 64 is a Ghost House. Sirena Beach's Hotel Delfino is similar to a Ghost House in many ways, as is World 2's fortress in Super Mario Bros. 3. Ghostly Galaxy from Super Mario Galaxy contains a ghost mansion which Luigi is kept in, and Boo Mushrooms as well. In Super Mario Galaxy 2, two Ghost Houses exist. The first, Haunty Halls Galaxy, features a ghost house that is invisible and intangible unless Yoshi eats a Bulb Berry. The second, Boo Moon Galaxy, features a pop-up book with a ghost house, as well as a graveyard, and a ghost tower where Mario becomes Boo Mario.
 Yoshi series
 Yoshi's Safari
The level Ghost Mansion in the game Yoshi's Safari is a large Ghost House. The level is full of Boos, Podoboos, Nipper Plants and a Lakitu boss that Mario and Yoshi must shoot down with the Super Scope. Mario and Yoshi will eventually reach the end to face Big Boo the level's main boss.
 Paper Mario series
Boo's Mansion of Paper Mario and Creepy Steeple in Paper Mario: The Thousand-Year Door is a Ghost House. The Enigmansion, found in Paper Mario: Sticker Star, acts like a Ghost House until the Boos are removed, of which it becomes a peaceful mansion. However, the Scaredy Rats remain. Also for Merlee's Mansion (chapter 2-4) is like a ghost house for mostly rooms (e.g. not the bathrooms).
 Mario Party series
The boards King Boo's Haunted Hideaway from Mario Party 8, Boo's Horror Castle from Mario Party 9 take place inside Ghost Houses, inhabited by Boos and Scaredy Rats, as well as other creatures. Minigames that feature Ghost Houses are Locked Out, Eye Sore, Candlelight Flight, Light Up My Night, Ghost in the Hall, Boo-ting Gallery and Specter Inspector, Manor of Escape, King Boo's Puzzle Attack, Boo-Bye, Boo Tag, Peek-a-Boo.
 Luigi's Mansion
 Dance Dance Revolution: Mario Mix
During Dance Dance Revolution: Mario Mix a Ghost House is found in Wario's Carnival. Though this so-called "Ghost House" is actually a traditional false haunted house (as seen in several real world carnivals), it actually contains Boos and the occasional Big Bubble.
 Names in Other Languages