In the United States, custody of a child is typically determined by the child's parents. However, in cases where the parents are unmarried or the child is in wedlock, the legal situation can be more complicated. Generally speaking, an unmarried mother will have sole custody of her child unless she voluntarily relinquishes custody or it is taken away by a court.