The mother is entitled to the custody of her male child until he reaches the age of seven years and her female child until she attains puberty (18 years). This right remains even if she is divorced from the child’s father unless she remarries, in which case custody transfers to the father.