Ocarina of Time Hyrule Castle: Sneak In and Meet Zelda
Young Link's trip to meet Princess Zelda runs on three rules that are easy to miss: Malon is not at the castle on your first visit, her egg only hatches at dawn, and the drain is a daytime-only door. Here is the whole route, how the guards actually spot you according to the game's code, and what the visit unlocks.

Ocarina of Time's stealth mission at Hyrule Castle sends young Link trespassing on royal property. You climb a wall, swim a moat, wake a sleeping man so you can borrow his milk crates, and crawl through a drain. The girl waiting at the end already expects you: per Zelda Wiki, Princess Zelda dreamed of a figure from the forest holding a green stone, followed by a fairy.
None of it is hard once you know three rules that are easy to miss. Malon is not at the castle the first time you walk up. Her egg only hatches at dawn. And the drain into the castle is a daytime-only door. This guide covers the whole visit, how the guards actually spot you according to the decompiled game code, what the visit unlocks, and what else is hidden on the grounds.

Hyrule Castle at a glance
| Detail | What it is |
|---|---|
| When | After the Deku Tree. Kaepora Gaebora points you here when you first leave Kokiri Forest |
| Age | Child Link only. Seven years later the castle is gone and Ganon's Castle stands on its ruins |
| Clock | Time is frozen in the Market but runs on the castle grounds. The courtyard can only be entered by day |
| The job | Get the Weird Egg from Malon, hatch it, wake Talon, then sneak through the Castle Gardens to Zelda |
| Rewards | Weird Egg (it hatches into a Cucco), Zelda's Letter, Zelda's Lullaby |
| Getting caught | You are put back at an earlier spot. There is no other penalty |
| Also on the grounds | A Gold Skulltula in a tree, the Great Fairy who gives Din's Fire, and a Song of Storms grotto with a second Gold Skulltula |
| Closes | The courtyard is sealed for good once Zelda flees the castle |
The Kaepora Gaebora detail and the Ganon's Castle detail are both from Zelda Wiki's Hyrule Castle page. The two clock rules are explained in the next section.
Getting there before the drawbridge shuts
Castle Town has its own moat and drawbridge, and Zelda Wiki notes that the bridge only lowers during the day. It goes up as soon as night falls. If you arrive late, StrategyWiki's advice is to wait out the night on a dirt path, where Stalchildren do not spawn, or in the moat, where they cannot reach you.
Two clock rules matter for the rest of the visit:
- Time stands still inside the town. StrategyWiki says so, and Zelda Wiki's notes on the Switch 2 remake list the Market as one of the places where the original's clock was static.
- Time runs on the castle grounds. The randomizer's logic files flag the grounds as an area where time passes, and Thonky's walkthrough waits there for night to fall.
If you need the clock to move, stand on the grounds or out in Hyrule Field, not in the Market.
The grounds are through the Market's north exit. Kaepora Gaebora is perched in a tree near the start of the path, and Zelda Wiki records his warning not to get caught by the guards. When he flies off, roll into that tree. StrategyWiki and Thonky both put a Gold Skulltula in it.
Malon is not there on your first visit
Malon is the girl singing by the Market fountain, and StrategyWiki has her explaining that her father went to the castle and still has not come back. She is the one you need, but she does not hand over the Weird Egg in the Market. Zelda Wiki's Weird Egg page has her giving it to Link on the path to Hyrule Castle, and the decompiled code shows how she gets there:
- The first time you step onto the castle grounds, the game sets a flag and does not spawn her there.
- From then on she is gone from the Market and standing by the vines on the castle grounds.
- She stays there until Talon goes home.
So walk up to the castle once, go back into the Market, and come out again. That is exactly the order StrategyWiki's walkthrough uses. The code has one more quirk. Her egg line only comes after her first-meeting introduction, so if you walked past her in the Market, expect to talk to her twice.
The Weird Egg only hatches at dawn

Zelda Wiki says the egg hatches the next time the sun rises, giving you a Cucco. In the decompiled code, the egg is swapped for the Chicken during the dawn transition, at the moment the rooster crow plays.
Because the Market's clock is frozen, waiting there does nothing. Thonky's route does not stop to wait for the hatch. It carries the egg all the way to Talon and, if it has not hatched yet, waits beside him for sunrise. That is the efficient play, because you cannot wake him without the bird anyway.
Over the arch and past the grounds guards
The castle's own drawbridge is never lowered at any point in the game, per Zelda Wiki. The way in starts on the vines next to Malon.
- Climb the vines to the right of Malon (Thonky). StrategyWiki notes that only the central vine reaches the top.
- Cross the stone arch. Follow the ledge to the top of the arch over the path. Thonky warns that walking toward the arch's left side gets you spotted by the guard there. From the top you can jump down on the far side (Thonky), or drop down the hole with the ladder and take the door at the bottom (StrategyWiki).
- Take the high ground. Where the path bends, Thonky goes up the hill on the left at an angle instead of walking the dirt path, where two guards stand. Do not drift too far left, because there is a guard up there as well.
- Climb the wall to the left of the castle's main gate. Thonky notes it is brick on N64 and vines on 3DS.
- Drop into the moat. Thonky lets the current carry you to a far corner with a slope out. StrategyWiki swims to the bars on the right instead. The randomizer's location list counts ten 1-Rupee pickups in the moat.
- Turn left and walk ahead. The man snoring beside two crates is Talon.
The guards out here do not patrol. In the decompiled code, the ones along the path are stationary sentries whose sight range depends on where you stand relative to the way each one faces, and on the time of day. (The guards standing in front of the castle itself work differently: they catch anyone who walks into a fixed patch of ground before the gate.)
| A guard on the path spots you within | Day | Night |
|---|---|---|
| In front or to the side (up to about 94 degrees either side of where he faces) | 250 units | 200 units |
| Behind him | 150 units | 100 units |
| Height limit | Only if you are within 100 units of his height | Same |
Get spotted and Zelda Wiki says you are thrown back out past the main gate. The table tells you two useful things. You can get much closer behind a guard than in front of him, and night takes 50 units off every sight range.
Waking Talon and moving his crates
Zelda Wiki puts Talon asleep near the entrance to the Castle Courtyard. The code is strict about how he wakes up: only the Chicken works. Offer him any other item and he just talks in his sleep. Use the Cucco, then talk to him again once he is awake. He realises Malon has been waiting for him and runs for home.
Now the crates. Thonky and StrategyWiki both move them only after Talon has gone, and the code backs that up: until he has left, it blocks pushing them in some directions. Thonky's method is to push one crate off the ledge through the gap, push the second one down on top of it, then climb onto the stack and jump across to the small drain hole in the castle wall.
Check the sky before you crawl in. At night two guards stand by the entrance (Zelda Wiki), and the code has them catch anyone who comes within 100 units. Zelda Wiki and StrategyWiki both say the courtyard cannot be reached after dark.
Waking Talon also changes things at Lon Lon Ranch. In the code, Malon leaves the castle grounds for the ranch once he is home, and that is where she teaches you Epona's Song (our Epona guide covers what that song leads to). Talon's Cucco game in the ranch house only exists once he is back, too. That game pays out one of the four bottles in our bottle locations guide.
The Castle Gardens: how the guards see you
Inside the drain is the stealth section proper. StrategyWiki splits it into five areas, and Zelda Wiki counts eight soldiers on 3DS. Every area is a fixed-camera screen, and the code ties each guard's eyesight to that camera.

These are the rules in the decompiled code, which covers the N64 and GameCube builds:
| Rule | What the code does |
|---|---|
| Who can catch you | Only the guards in the area the camera is currently showing |
| Line of sight | Each guard keeps firing an invisible sphere in the direction he is looking. If one passes within 70 units of Link, he is seen. A sphere stops at the first solid scenery it touches |
| Head movement | His head swings about 45 degrees to each side while he walks, and about 52 while he stands still |
| Too close | Within 60 units he catches you whichever way he is facing |
| Height | A sighting does not count if you are 60 or more units above him. A comment in the code says this is for the upper path |
| Caught | Zelda Wiki says you are put back just outside the secret entrance. The game sets a flag when it happens, but the code marks it as never used |
The solid-scenery rule is why hiding behind hedges and fountains works. The height rule is why the plank walkway is safe. Thonky's route uses both: the hedges in the first area, the fountains in the next, the planks over the sunken section, then the statue wall and a rectangular hedge before the arch that leads into the courtyard. Off the planks, the pattern Thonky follows is to wait until the guard on that screen has turned away, then move to the next piece of cover.
Thonky also mentions rupees in the sunken section under the planks. The code spawns a ring of eight rupees along with one of the patrols, and each one picks its colour at random: a 1-in-31 chance of Red, a 3-in-31 chance of Blue, and Green otherwise. That is not worth a walk back to the drain if you get caught.
Zelda, the windows and the letter
Zelda is at a window on the far side of the courtyard. Per Zelda Wiki, she tells you about her dream: dark clouds over Hyrule, parted by a light from the forest. Then she has you look through the window at Ganondorf, the Gerudo leader she believes is lying about his loyalty to her father. Her plan is to guard the Ocarina of Time herself while you collect the other two Spiritual Stones.
You cannot fail this conversation. In the code, a "No" either loops back to the same question or gets a different line before the scene carries on. She finishes by giving you Zelda's Letter.
The courtyard has two windows worth shooting with the Slingshot:
- The Mario window. On N64 it shows portraits of Yoshi, Princess Peach, Mario, Bowser and Luigi. On 3DS it shows a New Super Mario Bros. scene instead (Zelda Wiki). A Deku Seed into it drops a Red Rupee, worth 20 (Zelda Wiki, Thonky).
- The other window. Zelda Wiki says a guard pops up, tells you off and throws a bomb at you.

Impa stops you on the way out. She introduces herself as Zelda's Sheikah guardian and teaches you Zelda's Lullaby. Zelda Wiki notes it is a melody passed down by the Royal Family, and that Impa has played it to Zelda as a lullaby since she was a baby. On N64 it is C-Left, C-Up, C-Right, played twice. On 3DS it is X, A, Y, played twice. Our songs guide has every other song. Zelda asked Impa to see you out (Zelda Wiki), and in the code, talking to her once you know the song takes you straight to Hyrule Field.
What meeting Zelda unlocks
This visit is the hinge of the child-era quest. Here is what it switches on:
| Unlock | What it opens | Where to go next |
|---|---|---|
| Zelda's Letter | The gate to Death Mountain Trail in Kakariko. Zelda Wiki says the gatekeeper opens it when you show him the letter | After that, the letter starts the mask trading chain. See our mask guide |
| Zelda's Lullaby | Zora's Domain, the Royal Family's Tomb and the other spots marked with a Triforce (Zelda Wiki), including the Great Fairy fountains | Great Fairy guide |
| Zelda's Lullaby | Darunia's door in Goron City. He has locked himself in to wait for a messenger from the Royal Family (Zelda Wiki) | The two-song sequence is in our Dodongo's Cavern walkthrough |
| Saria in the Sacred Forest Meadow | In the code, she only waits there once you have been given the letter | She teaches Saria's Song. Route in our Lost Woods guide |
| Kaepora Gaebora in the Lost Woods | In the code, he only appears once you know Zelda's Lullaby | Lost Woods guide |
| Malon and Talon at Lon Lon Ranch | In the code, both turn up at the ranch once Talon has headed home | Epona's Song and the Cucco game bottle |
The rest of the castle grounds
| What | Where | What it takes |
|---|---|---|
| Gold Skulltula | The tree Kaepora Gaebora perches in, near the start of the grounds | Roll into the tree, then kill it |
| Din's Fire | A Great Fairy fountain behind a boulder with a "Dead End" sign. Thonky finds it straight ahead from the stone arch; StrategyWiki says to go right instead of left from the gate | Bombs for the boulder, then Zelda's Lullaby on the Triforce. Our Great Fairy guide covers the spell |
| Gold Skulltula, Gossip Stone, pots | A grotto by the tree near the moat where Talon slept (Thonky) | The Song of Storms to open it, then (per the randomizer's logic) explosives for the wall inside and the Boomerang to reach the token |
| Two Gossip Stones | One past the vines, one closer to the castle (Zelda Wiki) | No item needed |
| Red Rupee | Zelda's Mario window | The Slingshot |
The grotto is the one to plan for. The castle grounds as you know them only exist in the child era, and the Song of Storms is learned as an adult (our Bottom of the Well guide explains how). So that Skulltula means travelling back in time once you have the song. Every other Gold Skulltula and the rest of the hunt are in our Gold Skulltulas guide.
When the courtyard closes for good
Collect the third Spiritual Stone and head back to Castle Town, and the game plays the scene in which Zelda flees the castle. Thonky's walkthrough then has you dive into the moat for the Ocarina of Time. From that point on, the code removes the patrols and Impa and stations the night guards at the entrance permanently. Zelda Wiki agrees that the courtyard becomes inaccessible.
You do not lose anything important. The randomizer's location list has three item spots behind the drain: the letter, Impa's song and the Mario window. The letter gets you up Death Mountain and the lullaby gets you into Zora's Domain, so you will have both long before that scene. Of those three spots, only the Mario window's Red Rupee can be left behind. The grounds outside stay open to child Link: Thonky sends you there for Din's Fire after the scene.
Seven years later the castle itself is gone. Our Ganon's Castle guide covers what replaced it. If you want more sneaking, the adult-era version is Gerudo's Fortress, where getting caught gets you thrown in a cell.
Version differences
- N64 vs 3DS. The wall beside the main gate is brick on N64 and vines on 3DS (Thonky), and the Mario window shows different art (Zelda Wiki). The guard numbers above come from the decompiled N64 and GameCube code, so treat them as N64 numbers.
- Master Quest. Zelda Wiki describes Master Quest as the same game with redesigned dungeons, so this area is unchanged. On 3DS, though, Master Quest mirrors the whole map, so every left and right in the route above flips.
- The randomizer. Malon's egg, Zelda's Letter and Impa's song are all item locations in the Ocarina of Time Randomizer, and its child trade setting can shuffle the egg and the letter. The setting's tooltip also explains how to skip meeting child Zelda: leave Zelda's Letter unshuffled and add it as a starting item.
- The Switch 2 remake. Zelda Wiki's notes on the remake say the clock now runs even in places where it used to stand still, the Market included, and that the Market's camera is free instead of fixed. A Nintendo promotional screenshot that Zelda Wiki captions as Link sneaking into Hyrule Castle shows him climbing into an opening in the castle wall (below), so the drain route appears to survive. Zelda Wiki's Castle Courtyard page also has a remake shot of Link walking up to Zelda. Nothing confirms whether the guards, the egg or the crates have changed. Until the remake launches on November 5, 2026, treat everything here as an N64 and 3DS guide, especially the advice about the frozen Market clock. Our Switch 2 remake guide has everything else Nintendo has confirmed.

Quick Action Checklist
- Reach Castle Town by day. The drawbridge goes up at night.
- Roll into Kaepora Gaebora's tree at the start of the castle grounds for a Gold Skulltula.
- Step onto the grounds once, go back to the Market, then return. Malon is now by the vines. Talk to her until she gives you the Weird Egg.
- The egg hatches at dawn. Wait on the castle grounds or in Hyrule Field, not in the frozen Market.
- Route: vines, then the arch, then the hillside, then the wall left of the main gate, then the moat, and turn left to find Talon.
- Grounds guards do not patrol. Those along the path see 250 units in front and only 150 behind by day, and 50 less of each at night.
- Wake Talon with the Cucco, then talk to him again. Once he has gone, push one crate off the ledge, stack the second on it and jump to the drain. Go in by day only.
- In the gardens, only the guards on your screen can catch you, walls and hedges block their sight, and the planks are safe.
- Answer Zelda however you like and take Zelda's Letter. Shoot the Mario window for 20 Rupees.
- Learn Zelda's Lullaby from Impa on the way out.
- Next stops: the Kakariko gate with the letter, Lon Lon Ranch for Epona's Song, and the Sacred Forest Meadow for Saria's Song.
- Come back with bombs for Din's Fire, and with the Song of Storms for the grotto Skulltula.
Frequently Asked Questions
How do you get into Hyrule Castle in Ocarina of Time?
Why is Malon not at Hyrule Castle in Ocarina of Time?
How long does the Weird Egg take to hatch in Ocarina of Time?
What happens if the guards catch you at Hyrule Castle in Ocarina of Time?
How do the Castle Gardens guards see you in Ocarina of Time?
Can you go back to Zelda's courtyard later in Ocarina of Time?
What does Zelda's Letter do in Ocarina of Time?
Keep Reading
- Mythras blog
- Ocarina of Time coverage hub
- Ocarina of Time Epona guide
- Ocarina of Time bottle locations guide
- Ocarina of Time songs guide
- Ocarina of Time mask trading guide
- Ocarina of Time Great Fairy guide
- Ocarina of Time Dodongo's Cavern walkthrough
- Ocarina of Time Lost Woods guide
- Ocarina of Time Bottom of the Well guide
- Ocarina of Time Gold Skulltulas guide
- Ocarina of Time Ganon's Castle guide
- Ocarina of Time Gerudo's Fortress guide
- Ocarina of Time Randomizer guide
- Ocarina of Time Switch 2 remake guide
- Zelda Wiki — Hyrule Castle (Ocarina of Time): Castle Town's day-only drawbridge, the never-lowered castle drawbridge, Kaepora Gaebora's directions, where caught intruders are thrown, enemy and inhabitant lists
- Zelda Wiki — Castle Courtyard: Zelda's dream and window, Zelda's Letter, Impa and the lullaby, the Mario and guard windows, day-only access, sealed after Zelda flees, and a Switch 2 remake shot of Link approaching Zelda
- Zelda Wiki — Castle Gardens: daytime patrols, two night guards at the entrance, eight soldiers on 3DS
- Zelda Wiki — Weird Egg: given by Malon on the path to Hyrule Castle, hatches at the next sunrise, wakes Talon
- Zelda Wiki — Zelda's Letter: opens the Death Mountain Trail gate in Kakariko, later replaced by the Keaton Mask
- Zelda Wiki — Zelda's Lullaby: taught by Impa in the courtyard; opens Zora's Domain, the Royal Family's Tomb and Triforce-marked spots
- Zelda Wiki — Darunia: shut in his room waiting for the Royal Family's messenger
- Zelda Wiki — Gossip Stone: the stones past the castle vines, nearer the castle, and in the grotto by the tree
- Zelda Wiki — Ocarina of Time (Nintendo Switch 2): the clock now runs in formerly static areas such as the Market, and the Market's camera is free
- Zelda Wiki — Nintendo promotional screenshot of Link sneaking into Hyrule Castle in the Switch 2 remake, from Nintendo's Japanese product page
- Zelda Wiki — Master Quest: redesigned dungeons; the 3DS version mirrors the whole Hyrule map
- StrategyWiki — Hyrule Castle walkthrough: frozen town clock, Malon moving to the vines on the second visit, the central vine, the five garden areas, the Din's Fire boulder
- Thonky — Leaving the Forest: Malon, the Weird Egg, the arch and hillside route, the moat, Talon's crates, the garden route, the Mario window and Impa
- Thonky — Gold Skulltula guide: the tree on the path to Hyrule Castle and the Song of Storms grotto by the moat
- Thonky — Before the Temple of Time: Zelda's escape at the drawbridge, the Ocarina of Time in the moat, Din's Fire afterwards
- OoT decompilation — child Malon: Market and castle spawn flags, the Weird Egg handoff, moving to Lon Lon Ranch
- OoT decompilation — environment: the Weird Egg becomes the Chicken during the dawn transition
- OoT decompilation — Hyrule Castle grounds guards: stationary sentries, day and night sight ranges, height check
- OoT decompilation — Talon: only the Chicken wakes him at the castle; he runs home when spoken to
- OoT decompilation — milk crates: some push directions blocked until Talon has gone home
- OoT decompilation — courtyard guards: day patrols, night sentries, camera-linked vision, 60-unit catch radius, upper-path height check
- OoT decompilation — the courtyard guards' vision sphere: detects Link within 70 units, stops at level geometry
- OoT decompilation — the Castle Gardens rupees: random colour, 1 in 31 Red, 3 in 31 Blue
- OoT decompilation — child Zelda: "No" answers loop back, Zelda's Letter handoff
- OoT decompilation — Impa: teaches Zelda's Lullaby, escorts Link to Hyrule Field, removed after Zelda flees
- OoT decompilation — Saria: waits in the Sacred Forest Meadow once Link has Zelda's Letter
- OoT decompilation — Kaepora Gaebora: the Lost Woods owl only appears once Link knows Zelda's Lullaby
- OoT decompilation — save flags: the caught-by-castle-guards flag is marked set but unused
- OoT Randomizer logic — Hyrule Castle Grounds: time passes, Great Fairy needs explosives, Song of Storms grotto requirements
- OoT Randomizer location list — Malon's egg, Zelda's Letter, Impa's song, the moat and Mario window rupees, both Gold Skulltulas
- OoT Randomizer settings — Shuffle Child Trade Sequence Items: how to skip child Zelda
Related Guides

Ocarina of Time Songs Guide: All 12 Melodies and Notes
Twelve melodies, plus one you compose yourself. Half of them are convenience, half of them are locked doors. Here is every Ocarina of Time song with its exact note sequence on N64 and 3DS, where you learn it, and what it actually opens.

How to Get Epona in Ocarina of Time and What She Unlocks
Ocarina of Time never once forces you to own a horse. Here is the exact sequence that wins Epona off Ingo, the escape the game does not explain, and the two prizes only a mounted Link can collect.

Ocarina of Time Lost Woods: Route, Upgrades and Hearts
Take the wrong doorway in the Lost Woods and the game just puts you back in Kokiri Forest. Here is the seven-turn route to the Sacred Forest Meadow, how to find it by ear instead, and everything the route walks past: two Pieces of Heart, five capacity upgrades, four Gold Skulltulas and two shortcuts out.

Ocarina of Time Gerudo's Fortress: Free All 4 Carpenters
The Gerudo do not want you dead. They want you in a cell. Here is how to cross Gerudo Valley, get through the fortress, beat the four Gerudo Thieves guarding the carpenters, and walk out with the Gerudo Token — plus the collectibles on the grounds.

Ocarina of Time Dungeon Order: The Full Route, Explained
Ocarina of Time looks like an open adventure and plays like a corridor. Eight required dungeons, three side dungeons, and exactly one place where the game genuinely lets you pick. Here is the whole route with the reasons behind each lock.

Ocarina of Time Ice Cavern Walkthrough: Every Room
Skip the Ice Cavern and the Water Temple becomes uncrossable — the Iron Boots live nowhere else in the game. It's also a genuinely strange dungeon: per Zelda Wiki, it's tied with the Gerudo Training Ground as the smallest in Ocarina of Time, and every room but the mini-boss chamber connects by open hallway instead of a door. Here's the room-by-room route: the Ice Scythe hub and its five Silver Rupees, all three Gold Skulltulas, the White Wolfos fight, and the underwater shortcut on the way out.