Groundnuts (Arachis hypogaea) represent a critical source of protein and essential nutrients, particularly in developing countries. However, aflatoxin contamination in groundnuts, caused by the aflatoxigenic fungi Aspergillus flavus and Aspergillus parasiticus, represents a significant challenge to both agricultural productivity and public health worldwide. These mycotoxins, synthesised under certain environmental conditions, compromise the safety of groundnuts, leading to substantial economic losses and health hazards, including hepatocellular carcinoma and immune system suppression. This review synthesises the current knowledge on the biology and ecology of aflatoxigenic fungi, their interaction with groundnut plants and the impact of environmental factors on aflatoxin production. It also evaluates the latest advancements in detection methods, breeding for resistance, cultural practices and biological control strategies aimed at mitigating aflatoxin contamination in groundnuts. The review highlights the importance of an integrated management approach, encompassing pre-harvest and post-harvest interventions, to effectively reduce the risk of aflatoxin contamination and ensure food safety and security. By comprehensively addressing these aspects, this review aims to contribute to the development of effective strategies to minimise aflatoxin contamination in groundnuts, ensuring food safety and safeguarding public health.