This document discusses a proposed trust-based clustering algorithm (TWCA) to enhance security in mobile ad hoc networks (MANETs) by forming clusters of mobile nodes with designated cluster heads. The TWCA differentiates itself from previous algorithms by incorporating trust evaluations based on past interactions, addressing the vulnerabilities of existing weight-based clustering algorithms (WCA). Simulation results indicate that TWCA outperforms WCA and SEMC in energy consumption and packet delivery ratio.