Police said Selma Diaz contacted the Carrboro Police Department and turned herself in Tuesday evening. Both children were with her and they are both OK.
Investigators said the boys - Daniel Isai Banegas Diaz and Jeremias Isaac Banegas Diaz - were taken Tuesday morning by Diaz, who does not have legal custody.
The children were taken in the parking lot of Hillandale Elementary School.
Court records show Diaz and her husband, Roberto Benegas, of Durham, were scheduled to attend mediation and co-parenting classes this Thursday at the Durham County Courthouse.