In Moana, Maui the demigod and later a few Motunui sailor are shown tying this knot.
This knot is called Bowline Knot.
Bowline is an ancient and simple knot used to form a fixed loop at the end of a rope. It has the virtues of being both easy to tie and untie; most notably, it is easy to untie after being subjected to a load.
The bowline is commonly used in sailing small craft, for example to fasten a halyard to the head of a sail or to tie a jib sheet to a clew of a jib.