Bowser in the Sky

Bowser in the Sky is the third and final Bowser stage in Super Mario 64 and Super Mario 64 DS, and it is the final level of the games, taking place in a sky filled with dark-blue, purple, pink, and black clouds. Mario travels through platforms in the sky until he reaches a Warp Pipe leading to a final fight against Bowser to save Princess Peach and the Toads in the Mushroom Castle. 70 Power Stars (80 in Super Mario 64 DS) are required to reach the top of the endless stairs beyond the Big Star Door on the third floor.

Bowser in the Sky is one of the three levels in Super Mario 64 DS that only a certain character can access (the others being Chief Chilly Challenge for Luigi and The Secret Under the Moat for Wario), as Bowser allows only Mario to enter this level; any other character who attempts to access this level is blocked by the endless stairs.

Layout
The stage begins with Mario landing on a large arrow-shaped platform, signifying the direction he is supposed to go. Next are a few platforms arranged like a set of stairs, with the final one having a moving platform slide out of it, which can push Mario off the platform into the abyss below if the player is not careful. At the top of the platforms is a block that can be pushed to reach a Red Coin. After the stair platforms is a seesaw that will tilt based on where Mario is standing, dropping him out of the level if he remains in place for too long. Afterward is a large ramp that Mario can run up to reach a bend that leads to a spinning platform; in the DS version of the game, this platform holds the Star Sphere. The next bend leads toward a spinning Ferris wheel-esque set of platforms, followed by a small platform with a Whomp on it, a ledge with a Keronpa Ball, and finally an area with a Chuckya, all of which are positioned above a large platform. Afterward is a platform leading to a set of stairs that will activate upon Mario pressing the Purple Switch.

At the top of the stairs is a large bending platform with a few flamethrowers and coins, along with a Red Coin at the top. At the end of this bending platform is a lift that will carry Mario through a series of platforms he needs to jump over, with one of them containing a Spinning Heart the player can use to recover Mario's health. Once the lift reaches the end of its rail, it will turn around and head back to its original position, or if Mario remains off it for a certain amount of time, it will warp back to its original position. After the lift are two spinning platforms containing a Keronpa Ball, Bob-ombs, and Amps, with the back platform having a pole for Mario to climb and reach the next area.

By climbing the pole, Mario can reach a platform with two Goombas and two sliding platforms that bridge the gap between them. After the bending stone path beyond those are two Ferris wheel platforms Mario needs to jump between to reach the final platform. The final platform contains a trio of Goombas, some columns, and a Spinning Heart, though a strong gust of wind will constantly be pushing Mario back. He can stand right behind the columns to avoid getting blown off. The Warp Pipe at the end of the stage will take Mario to the final fight with Bowser.

Bowser battle
While the method of defeating Bowser is similar to that for the previous fights, there are many differences between Bowser's attacks and the stage. Unlike the previous battles when the player had four mines (eight in the remake), this battle has five mines. When Bowser slams the ground, shockwaves will appear, and they will damage Mario if he touches them. Bowser retains the fire attacks from the previous battles and can also breathe a stream of fire into the air, which will fall back down as several fireballs. The last difference is that Bowser has to take damage from three mines before admitting defeat; when Bowser takes damage from two mines, he will shake the battlefield, causing it to form a star-like shape, and the third throw will require much more power and timing than the first two. Additionally, each time Bowser is damaged, it becomes easier for Mario to grab Bowser's tail without having to bait him into performing the charge attack. After the third hit, Bowser will give Mario the Jumbo Star. When he touches it, he acquires the Wing Cap, allowing him to fly and land in the Castle Grounds, where Peach and two Toads (Luigi, Wario, and Yoshi in the DS version) are waiting for him. Mario releases Peach from above the door entrance, and she bakes a cake for her hero(es). The credits then roll. The game ends with a screenshot of the cake that everyone bakes, with statuettes of Mario and Peach on top, and the words "The End" below. In the N64 version, the screen will freeze afterward and the system will need to be turned off or reset. In the DS remake, the making of the cake is shown on the bottom screen during the credits, and statuettes of Luigi and Wario are added if they are unlocked. This time, the player can press the button on the Nintendo DS to return to the Title Screen.

8 Red Coins
As with the previous Bowser levels, a Power Star can be obtained by collecting the eight Red Coins found throughout the level. These are the locations of the Red Coins: After Mario collects all eight Red Coins, the Power Star will appear behind the Warp Pipe that leads to Bowser.
 * Floating above the second-to-last stair-like platform. Mario must push the block and then jump off it to get this coin. He can also backward-somersault to get it.
 * In a corner of the stone path where a Small Piranha appears after the first spinning platform
 * On a small ledge vertically next to a trail of regular coins on the large stone platform below the seesaw leading to the first set of Ferris wheel platforms
 * Floating above a side with regular coins at the top of the large bending platform with flamethrowers
 * Floating above the first highest wooden platform after the Spinning Heart on the path of the lift with an arrow (two arrows in the DS version)
 * Near the center of the first spinning platform after the path of the lift with an arrow
 * Floating above the pole between the two sliding platforms on the third level
 * On the ledge under the stairs before the Warp Pipe that leads to Bowser

Switch Star (DS only)
Below the first set of platforms that rotate much like a Ferris wheel is a large stone platform. At one end is a Star Switch. Upon pressing it, the player must backtrack to the Star Sphere on the spinning platform from earlier to collect the Power Star.

Secrets

 * The statues before the pipe at the end of the level show a depiction of Mario jumping over a fireball near Bowser, in the old Super Mario Bros. style.
 * Like the other Bowser stage Stars, the Secret Stars in this level are shown under the "Castle Secret Star" count.
 * Upon his defeat, Bowser's message to the player will differ depending on whether or not all the game's Power Stars have been collected:

Trivia

 * Even though seven Goombas are seen in this level, there is actually an eighth Goomba in the N64 version, but its spawn point is off the edge of the platform. This results in the Goomba appearing at the very bottom of the level for a single frame and then disappearing. This makes the coin inside said Goomba impossible to collect. The eighth Goomba was removed in the DS version.
 * In the DS version, this is the only time when Bowser mentions Mario by his name.
 * By accessing the level with fewer than 70 Power Stars via glitches, if the player loses a life, "Inside the Castle Walls" plays for a brief moment before it is cut off by the endless stairs music.