Chitosan, a natural polysaccharide, has attracted considerable attention as an environmentally friendly and highly efficient adsorbent for dye removal. It is usually produced by deacetylation or partial deacetylation of chitin. However, conventional sources of chitin and chitosan are limited, prompting the need for alternative sources with improved adsorption capabilities. Herein, this study focuses on exploring a novel chitin and chitosan source derived from the dung beetle and evaluates its potential for organic dye removal from aqueous solutions. The research involves the extraction and characterization of chitin and chitosan from dung beetle Heteronitis castelnaui (Harold, 1865) using various analytical techniques, including SEM, FT-IR, TGA, XRD, NMR, deacetylation degree and elemental analysis. The chitosan obtained was used for the formation of hydrogels with sodium alginate via cross-linking with calcium chloride. And then the prepared hydrogels were evaluated for its adsorption capacity through batch adsorption experiments using methylene blue as a model pollutant. The adsorption capacity for methylene blue was 1294.3 mg/g at room temperature with solution pH = 12, MB concentration of 1800 mg/L. Furthermore, the kinetics of the adsorption process were analyzed using pseudo-first-order and pseudo-second-order models to understand the rate of adsorption. The maximum adsorption capacities were determined using Langmuir and Freundlich isotherm models. This study provides valuable insights for the development of sustainable dye adsorption technologies, specifically investigating a novel chitosan source derived from the dung beetle.