C-type lectins (CTLs), a diverse family of pattern recognition receptors, are essential for immune recognition and pathogen clearance in invertebrates. TcCTL17 contains one carbohydrate recognition domain and three scavenger receptor Cys-rich domains. Spatial and temporal expression analysis revealed that TcCTL17 is highly expressed in early pupa, early adult stages, and the larval gut at 20 days. The recombinant TcCTL17 exhibited dose-dependent binding to lipopolysaccharides and peptidoglycans, Ca2+-dependent binding and agglutination of bacteria in vitro. Knocking down TcCTL17 before bacterial exposure reduced survival rates and increased bacterial loads in T. castaneum larvae, accompanied by decreased antimicrobial peptide expression and haemolymph phenoloxidase activity. Additionally, TcCTL17 RNA interference caused developmental abnormalities, affecting metamorphosis and fecundity, possibly by influencing the 20E, JH, and vitellogenin pathways. These findings underscore dual functions of TcCTL17 in immunity and development, making it a potential target for pest management.