An attorney ad litem for a child advocates for their best interests in court, independently investigating their situation. They provide crucial legal representation in custody disputes, abuse/neglect cases, and other matters affecting the child’s well-being.