Magically constructed and grown over the course of the year on the Quidditch pitch, this maze was the location of the Third Task of the Triwizard Tournament. At it’s center, the Triwizard Cup waited for the competitors to reach it.
From the Web
Why didn't Harry use the right-hand-rule (or other methods) to solve the Triwizard maze? from Scifi Stackexchange