The first (ground) level of Resident Evil 4's hedge maze. There's more than one route through the maze, but the most direct route is outlined in our maps of the Courtyard below. Opening that gate requires you to pull three levers, each of which unfurls a flag near the exit. The exit you need is the third, a portcullis at the far east side of the map, accessible via a staircase. You'll eventually open the second that returns you to the outdoor fountain where the merchant peddles his wares nearby. One is back the way you came, to the house where you reunited with Ashley. Technically, there are three exits from Resident Evil 4's Courtyard maze.
Use this guide to find your way through, and escape, the Courtyard maze in Resident Evil 4.
Knowing how to escape the Courtyard maze was one of the toughest parts of the Castle region in the original Resident Evil 4 Capcom's 2023 remake amps up the challenge by requiring you to unfurl three flags to open the exit.