It is claimed that a father has the paramount right to the custody of a child. This was once the law, but we have emerged from the dark ages during which married women had the status of slaves and chattels. The only basis for the father’s alleged superior right to-day is his obligation to support his children. This basis disappears when one considers what a mother gives to her children in suffering," self-sacrifice and devotion. On any admeasurement of rights determined by service rendered the right of a mother to the-custody of her children is at least equal to that of the father. The real test should be the welfare of the child. While the father’s supposed para*678mount right is asserted in this case, the decision really turns on another question — the validity of a separation agreement wherein the father divests himself of the custody of a child and surrenders it to the mother. This agreement was made after actual separation and during the pendency of an action instituted by the wife for a separation. The agreement. was a fair and proper one in every respect, considering both the parties and their children. It was signed "in the presence of and apparently had the approval of a justice of this court, and it avoided the necessity of a painful and distressing trial. By it the wife discontinued the suit and relinquished a temporary allowance of twenty dollars a week, accepting a permanent allowance of twelve dollars a week while living separate and apart from her husband. The custody of the elder son, now over eight years of age, was given to the father, and the custody of the younger son (the child in question), now about four and one-half years of age, was given to the mother. It was further provided that opportunity should be given both parties to see the children any time and that each parent should have the two children with them at alternate week-ends and for one month of the school vacation, the wife agreeing to reside with her mother and in any event to maintain her home not more than thirty-five miles from New York city, the father living in Ossining. No question of the moral fitness of either the father or the mother is involved. Other things being equal, the propriety of giving the mother the custody of a child only four and. one-half years old is sufficiently obvious. But, the father asserts that the agreement is invalid and not binding on him, resting his contention upon the case of People ex rel. Barry v. Mercein, 3 Hill, 399. It was held in that case that a husband cannot by agreement alienate to his wife the right to the custody of their *679children. That was sound law when the Mercein case was decided, in 1842. In determining whether the Mercein case has any binding force to-day, we must have regard to the changed status of a wife in the eyes of the law to-day, as compared with 1842. The status of the wife when the Mercein case was decided is indicated by the following quotations from the opinion in that case: “ This brings us to a consideration of the legal rights and powers of the relator and his wife in respect to their offspring. These rights and powers, like nearly all others when the claims of husband and wife come in conflict, depend upon a rule too elementary to require the adduction, of authority; and too obvious to have been denied in the whole course of this particular controversy, from the hearing before the chancellor in the summer of 1839 (8 Paige, 47), through the several hearings before the commissioners, in this court, and the court for the correction of errors. The principle is thus stated in 1 Black. Com. 468: ‘ The very being or legal existence of the woman is suspended during the marriage, or, at least, is incorporated and consolidated into that of the husband. ’ Their relative power over the person of the child follows as a consequence, * * * ‘A man cannot grant anything to his wife, or enter into a covenant with her; for the grant would be to suppose her separate existence; and to covenant with her would be only to covenant with himself ’ (1 Black. Com. 468) * * *. If the husband has a right to transfer the marriage bed to his wife, I deny that he has, therefore, the right still farther to violate his duty by selling his children, with or without it. These he holds under the duty of a personal trust, inalienable even to another who is sui juris; a fortiori to his wife, with whom he can make no contract whatever.” But the world has moved since *6801842. It is not to be believed that to-day any enlightened court would subscribe to the statement that ‘ ‘ the very being or legal existence of the woman is suspended during the marriage, or, at least, is incorporated and consolidated into that of the husband.” By statute and judicial decision it is now well recognized that: “A wife is now permitted to contract with the freedom of a femme sole and by express command of the legislature she can at last contract even with her husband the same as if unmarried, except that they cannot alter or dissolve the marriage and she cannot release him from his obligation to support her. ’ ’ Winter v. Winter, 191 N. Y. 462, 473. The authority of the Mercein case was inferentially overthrown in Allen v. Affleck, 10 Daly, 509, decided in 1882. Since that time numerous decisions have been rendered upholding and enforcing provisions in separate agreements providing for the payment of money to the wife not only for her maintenance, but for that of her child. Duryea v. Bliven, 14 N. Y. St. Repr. 881; Greenleaf v. Blakeman, 40 App. Div. 371, affd., 166 N. Y. 627; Muth v. Wuest, 76 App. Div. 332; Duryea v. Bliven, 122 N. Y. 567; Clark v. Fosdick, 118 id. 7. The right of the father to transfer the custody of his child to his wife, where they have separated and where there is nothing in the' agreement inconsistent with the welfare of the child, is generally recognized by the leading text-book writers and leading cases in other states and in England. Hurd Habeas Corpus, 540, 541; Church Habeas Corpus, '708; Tyler Infancy & Coverture, 283, 287; Beeve Dom. Bel. 130; 2 Bishop Mar. Div. & Sep, 456; Schouler Dom. Bel. 328; 36 & 37 Viet., chap. 12, § 2; Hart v. Hart, 18 Ch. Div. 670; Fletcher v. Hickman, 50 W. Va. 244; Green v. Campbell, 14 S. E. Repr. 212; California Civil Code, § 211; State v. Smith, 6 Greenl. (Maine) 462. The agreement in question is valid, and *681its provisions must be observed. It follows that the writ must be sustained, with costs, and the custody of the infant Templeton Lee be awarded to the relator pursuant to the terms of the separation agreement.
Ordered accordingly.