Wireless sensor networks (WSNs) are expected to find extensive applicability and accelerating deployment in the future. However, the main challenge faced in WSN is its perishing lifetime. The process of clustering a network is a popular mechanism employed for the purpose of extending the lifespan of WSNs and thereby making efficient data transmission. The main aim of a clustering algorithm is to elect an optimal cluster head (CH). The recent research trend suggests metaâheuristic algorithms for the selection of optimal CHs. Metaâheuristic algorithms possess the advantages of being simple, flexible, derivationâfree, and avoids local optima. This research proposes a novel hybrid grey wolf optimiserâbased sunflower optimisation (HGWSFO) algorithm for optimal CH selection (CHS) under certain factor constraints such as energy spent and separation distance, such that the network lifetime is enhanced. Sunflower optimisation (SFO) is employed for a broader search (exploration) where the variation of the stepâsize parameter brings the plant closer to the sun in search of global refinement, thus increasing the exploration efficiency. Grey wolf optimisation (GWO) is employed for a narrow search (exploitation), where the parameter coefficient vectors are deliberately required to emphasise exploitation. This balances the explorationâexploitation tradeâoff, prolongs the network lifetime, increases the energy efficiency, and enhances the performance of the network with respect to overall throughput, residual energy of nodes, dead nodes, alive nodes, network survivability index, and convergence rate. The superior characteristic of the suggested HGWSFO is validated by comparing its performance with various other existing CHS algorithms. The overall performance of the proposed HGWSFO is 28.58%, 31.53%, 48.8%, 49.67%, 54.95%, 70.76%, and 87.10%, better than that of GWO, SFO, particle swarm optimisation (PSO), improved PSO, lowâenergy adaptive clustering hierarchy (LEACH), LEACHâcentralised, and direct transmission, respectively.