Custody is decided primarily by what is in the best interest of the child. This includes factors such as criminal backgrounds, finances, stability, substance abuse, etc. A court’s responsibility is the welfare of the child involved and will therefore make the decision that is best for the child.