The Vanish Cap is an item in Super Mario 64.
It is mainly found by jumping into Blue [!] Blocks and looks like a transparent version of Mario's regular Cap.
Upon collection, Mario will put on the Vanish Cap and become partially invisible. With this cap, he is able to temporarily move through steel bars and special walls.
In Big Boo's Haunt, in the mission Star 6: Eye to Eye in the Secret Room|Eye to Eye In The Secret Room, Mario must collect a Vanish Cap in the main room on a ledge and make his way to the room next to it, Wall Jump to a balcony above the door, and enter into the attic and jump into the Boo portrait, and meet Mr. I. Mario must then circle around the enemy until it spins oit and gives Mario a Power Star.
If Mario discovers the moat underneath the castle, a hole will eventually appear and Mario can enter it. Down here, Mario must set across some obstacles to get to a Vanish Cap. Once collected, he must jump into a cage containing a Power Star.
In Super Mario 64 DS the Blue ! Switch and Vanish Cap do not appear. Instead, when Luigi gets a Power Flower, he gains the same abiltites as Vanish Mario, except that he can move both horizontally and vertically and cannot walk through ice.
If the Vanish Cap ends up falling onto a slope (which happens in one of the slide levels), it will sometimes slide around and slide down the slope, making Mario unable to collect it, as it slides and falls faster than Mario, and thus unable to complete the level, collect all the Coins or fullfill the current mission objectives.
Trying to collect the sliding Vanish Cap with a well timed Forward Charge, he will put the Cap on in mid-air and will become uncontrollable, possibly ending him in a bottomless pit.