This paper introduces the Gooseneck Barnacle Optimisation Algorithm (GBO) as a novel evolutionary method inspired by the natural mating behaviour of gooseneck barnacles, which involves sperm casting and self-fertilization. GBO is mathematically modelled, considering the hermaphroditic nature of these microorganisms that have thrived since the Jurassic period. In contrast to the previously published Barnacle Mating Optimizer (BMO) algorithm, GBO more accurately captures the unique static and dynamic mating behaviours specific to gooseneck barnacles. The algorithm incorporates essential factors, such as navigational sperm casting properties, food availability, food attractiveness, wind direction, and intertidal zone wave movement during mating, creating two vital optimization stages: exploration and exploitation. Real-world case studies and mathematical test functions serve as qualitative and quantitative benchmarks. The results demonstrate that GBO outperforms well-known algorithms, including the previous BMO, by effectively improving the initial random population for a given problem, converging to the global optimum, and producing significantly better optimization outcomes.