Blog/Ocarina/🎮Game Guides

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.

Published October 11, 2026·12 min read·By Mythras
Hyrule Castle in Ocarina of Time 3D: a white stone castle with blue spires and flags above a grassy field, a stone staircase climbing to its wooden front door, an iron fence along the ridge and ivy on the rock wall at left.

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 in Ocarina of Time 3D: a white stone castle with blue spires and flags above a grassy field, a stone staircase climbing to its wooden front door, an iron fence along the ridge and ivy on the rock wall at left.

Hyrule Castle at a glance

DetailWhat it is
WhenAfter the Deku Tree. Kaepora Gaebora points you here when you first leave Kokiri Forest
AgeChild Link only. Seven years later the castle is gone and Ganon's Castle stands on its ruins
ClockTime is frozen in the Market but runs on the castle grounds. The courtyard can only be entered by day
The jobGet the Weird Egg from Malon, hatch it, wake Talon, then sneak through the Castle Gardens to Zelda
RewardsWeird Egg (it hatches into a Cucco), Zelda's Letter, Zelda's Lullaby
Getting caughtYou are put back at an earlier spot. There is no other penalty
Also on the groundsA Gold Skulltula in a tree, the Great Fairy who gives Din's Fire, and a Song of Storms grotto with a second Gold Skulltula
ClosesThe 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

The Weird Egg's model from Ocarina of Time 3D: a pale cream egg sitting in a nest of golden straw.

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.

  1. Climb the vines to the right of Malon (Thonky). StrategyWiki notes that only the central vine reaches the top.
  2. 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).
  3. 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.
  4. Climb the wall to the left of the castle's main gate. Thonky notes it is brick on N64 and vines on 3DS.
  5. 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.
  6. 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 withinDayNight
In front or to the side (up to about 94 degrees either side of where he faces)250 units200 units
Behind him150 units100 units
Height limitOnly if you are within 100 units of his heightSame

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.

The Castle Gardens in Ocarina of Time 3D: three spear-carrying soldiers stand on the lawn, one beside a statue of a warrior and two figures on a Triforce-marked plinth, one half-hidden behind a low white wall and one by a vine-covered pergola, with an iron fence and the moat in the foreground.

These are the rules in the decompiled code, which covers the N64 and GameCube builds:

RuleWhat the code does
Who can catch youOnly the guards in the area the camera is currently showing
Line of sightEach 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 movementHis head swings about 45 degrees to each side while he walks, and about 52 while he stands still
Too closeWithin 60 units he catches you whichever way he is facing
HeightA 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
CaughtZelda 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.

Five portraits on a castle wall in the Nintendo 64 Ocarina of Time, seen through Zelda's courtyard window: Yoshi, Princess Peach, Mario, Bowser and Luigi.

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:

UnlockWhat it opensWhere to go next
Zelda's LetterThe gate to Death Mountain Trail in Kakariko. Zelda Wiki says the gatekeeper opens it when you show him the letterAfter that, the letter starts the mask trading chain. See our mask guide
Zelda's LullabyZora's Domain, the Royal Family's Tomb and the other spots marked with a Triforce (Zelda Wiki), including the Great Fairy fountainsGreat Fairy guide
Zelda's LullabyDarunia'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 MeadowIn the code, she only waits there once you have been given the letterShe teaches Saria's Song. Route in our Lost Woods guide
Kaepora Gaebora in the Lost WoodsIn the code, he only appears once you know Zelda's LullabyLost Woods guide
Malon and Talon at Lon Lon RanchIn the code, both turn up at the ranch once Talon has headed homeEpona's Song and the Cucco game bottle

The rest of the castle grounds

WhatWhereWhat it takes
Gold SkulltulaThe tree Kaepora Gaebora perches in, near the start of the groundsRoll into the tree, then kill it
Din's FireA 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 gateBombs for the boulder, then Zelda's Lullaby on the Triforce. Our Great Fairy guide covers the spell
Gold Skulltula, Gossip Stone, potsA 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 StonesOne past the vines, one closer to the castle (Zelda Wiki)No item needed
Red RupeeZelda's Mario windowThe 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.

Young Link in the Switch 2 remake of Ocarina of Time climbing into a small arched drain in a moss-streaked stone castle wall, with Navi glowing beside him. Nintendo promotional screenshot.

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?
In Ocarina of Time, young Link gets into Hyrule Castle by climbing the vines beside Malon on the castle grounds, crossing the stone arch, keeping to the hillside away from the guards, climbing the wall left of the main gate and dropping into the moat. Talon is asleep beside some crates on the far side. Wake him with the Cucco hatched from Malon's Weird Egg, push his crates off the ledge into a stack, and jump to the drain hole in the castle wall. Crawl through by day, then sneak past the Castle Gardens guards to reach Princess Zelda in the courtyard.
Why is Malon not at Hyrule Castle in Ocarina of Time?
In Ocarina of Time, Malon does not appear on the castle grounds the first time you visit. The game sets a flag on that first visit, and from then on she leaves the Hyrule Castle Town Market and waits by the vines outside the castle, where she gives you the Weird Egg. Walk onto the castle grounds once, go back into the Market, then return. If you never spoke to her in the Market, talk to her twice: her egg line follows her introduction.
How long does the Weird Egg take to hatch in Ocarina of Time?
The Weird Egg in Ocarina of Time hatches into a Cucco at the next dawn, at the moment the rooster crows. Time stands still inside the Hyrule Castle Town Market, so waiting there does nothing. Wait on the Hyrule Castle grounds or in Hyrule Field instead, where the clock runs. Thonky's walkthrough carries the egg to the sleeping Talon and, if it has not hatched yet, waits beside him for sunrise.
What happens if the guards catch you at Hyrule Castle in Ocarina of Time?
Being caught at Hyrule Castle in Ocarina of Time has no penalty beyond lost progress. Guards on the outer grounds throw young Link back out past the castle's main gate, and guards in the Castle Gardens put him just outside the drain he crawled in through. The game sets a flag when you are caught by the castle guards, but the decompiled code marks that flag as never used.
How do the Castle Gardens guards see you in Ocarina of Time?
In Ocarina of Time's Castle Gardens, according to the decompiled N64 code, only the guards in the area the camera is showing can catch Link. Each guard keeps firing an invisible sphere where he is looking, and it stops at the first solid scenery, so hedges and fountains block his view. His head sweeps about 45 degrees each way while walking and 52 while standing. He catches Link within 60 units whatever way he faces, and ignores Link on the raised plank path 60 or more units above him.
Can you go back to Zelda's courtyard later in Ocarina of Time?
Only by day, and only until Zelda flees Hyrule Castle. In Ocarina of Time, the Castle Courtyard is closed at night because two guards stand at the secret entrance. After you collect the third Spiritual Stone and see Zelda flee the castle, those guards stay there permanently and the courtyard can no longer be reached. The outer castle grounds, with Din's Fire and the Song of Storms grotto, stay open to child Link.
What does Zelda's Letter do in Ocarina of Time?
Zelda's Letter in Ocarina of Time makes the gatekeeper in Kakariko Village open the gate to Death Mountain Trail, which is the road to Goron City and the Goron's Ruby. After that, the letter starts the Happy Mask Shop's mask trading chain and is replaced by the Keaton Mask. Receiving the letter is also what makes Saria wait in the Sacred Forest Meadow to teach Saria's Song.

Keep Reading

Sources & Further Reading
Last updated October 11, 2026.

Related Guides

Link playing Zelda's Lullaby on the ocarina in Ocarina of Time 3D, the remade 3DS version of the game.
🎮Game GuidesJul 20, 2026·11 min read

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.

Read article
Lon Lon Ranch in Ocarina of Time 3D, the walled horse ranch in the centre of Hyrule Field where Epona is raised.
🎮Game GuidesAug 20, 2026·10 min read

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.

Read article
A clearing in the Lost Woods in Ocarina of Time 3D: a Deku Scrub sits on a grassy ledge in the foreground, and behind it a rope bridge spans a gap between two hollow-log tunnels, framed by tall wooden posts.
🎮Game GuidesOct 10, 2026·10 min read

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.

Read article
Gerudo's Fortress in the Nintendo 64 version of Ocarina of Time: stacked sandstone buildings in a canyon, purple-clad Gerudo guards with long bladed polearms patrolling the sandy yard, and a latticed gate beneath the original crescent emblem.
🎮Game GuidesSep 30, 2026·10 min read

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.

Read article
Child Link standing in front of the Great Deku Tree in Kokiri Forest, the entrance to the first dungeon in Ocarina of Time on N64.
🎮Game GuidesJul 20, 2026·12 min read

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.

Read article
The icy interior of the Ice Cavern in Ocarina of Time, the frozen mini-dungeon behind Zora's Fountain.
🎮Game GuidesSep 21, 2026·11 min read

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.

Read article