Adverse childhood experiences (ACEs) have been linked to the development of borderline personality features (BPFs), yet the mechanisms underlying this association remain unclear. Conflicting evidence also exists regarding the roles of prolonged trauma exposure, age, gender, and related factors in shaping this relationship. This study examined whether ACEs predict BPFs and explored whether age and duration of stay in Internally Displaced Persons (IDPs) camps mediate the association, as well as whether gender moderates these relationships. A total of 397 children aged 7-17 years residing in IDPs' camps participated. Results showed a significant positive relationship between ACEs and BPFs (r = 0.48, p < 0.001; ß = 0.31, p < 0.001). Age did not mediate the association between ACEs and BPFs (ß = 0.007, 95% CI = -0.00-0.016, p < 0.001), whereas time spent in IDPs' camps partially mediated this relationship (ß = 0.022, 95% CI = -0.007-0.041, p < 0.001). Gender did not significantly moderate the effects of ACEs on BPFs through age (ß = -0.047, 95% CI = -0.0012-0.0377, p < 0.05) or duration in IDPs' camps (ß = 0.041, 95% CI = -0.0012-0.0377, p < 0.05). Overall, prolonged displacement and early exposure to trauma appear to be critical pathways linking ACEs to borderline personality features among children in displaced contexts. The findings highlight the urgent need for trauma-informed psychosocial interventions and early screening programs within IDPs' camps to support emotional regulation and prevent long-term personality and mental health difficulties among affected children.