— This is an application for discharge upon habeas corpus. The return to the writ shows, that the respondent is imprisoned under an order of the superior court of the city and county of San Francisco, made upon conviction for contempt, in refusing to obey an order of the court theretofore made, requiring him “ to pay the sum of twenty-five dollars per month as alimony,” to Josephine M. Spencer, his former wife.
From the return and records introduced, it appears that on August 25, 1884, in the suit of Thomas M. Spencer, plaintiff, v. Josephine M. Spencer, defendant, a decree of divorce was granted to the defendant, upon her cross-complaint; the custody of a minor child was awarded to her; the household goods and personal property at the residence occupied by her were set apart to her; and it was further decreed that the plaintiff should pay to the defendant, “ as permanent alimony, the sum of fifty dollars per month, on the first day of September, 1884, and *462on the first day of each and every month thereafter.” On May 13, 1887, on the motion of plaintiff, this decree was modified and the amount of alimony so fixed reduced to twenty-five dollars per month. In December, 1888, petitioner having failed for some time to make payment, he was cited to appear before the court and show cause why he should not be punished for contempt. On the return day of that citation the defendant, this petitioner, was examined under oath touching his ability to pay the moneys so required of him, and his reasons for not paying the same, and the court found that there was then due and unpaid the sum of $225; that demand therefor had been made; that he had been, and was, abundantly able to pay the same; and that he had permanent and lucrative employment. Upon these findings the court adjudged him guilty of contempt, and ordered that he be committed to the custody of the sheriff, and confined in the county jail until he obeyed the said order and paid the said sum of $225, so found due and unpaid under said decree, or until discharged according to law.
These proceedings seem to have been regular, and in accordance with the provisions of title 5, part 3, of the Code of Civil Procedure. And the order of imprisonment was in accordance with the provisions of section 1219, a part of that title, the court having found that the party convicted was able to make the payment required of him, and consequently that it was in his power to perform the act required. It is insisted here, however, that the court erred in this finding; that there wras no evidence to support it. That is a matter into which we cannot inquire upon this writ. Under the writ the court can only inquire into the jurisdiction to find, not into the correctness of the findings upon which the conviction is based.
The only remaining inquiry is, whether the judgment or order which the petitioner is found guilty of having disobeyed was a lawful judgment or order.
*463Upon this point it is insisted that in divorce proceedings, Avhen the court reaches its final judgment, and grants a decree of divorce under our statutes, dissolving the bonds of matrimony, it has no jurisdiction or power to decree the payment of “permanent,” or indeed any future, “ alimony ”; that the only provision on the subject of “ alimony ” is that found in section 137 of the Civil Code, and relates entirely to what may be done pendente lite; that alimony grows out of that obligation of support which arises from the relation of husband and wife, and proceeds only from husband to wife; that the moment the decree of divorce is granted the relation of husband and wife has ceased; there is then no husband, no wife, and hence there can be no alimony.
It is true that “ alimony,” in its strict technical sense, proceeds only from husband to wife, and that where the relation of husband and wife does not exist, strictly speaking there can be no alimony. It is true, also, that the legislature has used the term only in its strict legal sense, and has therefore used the word “alimony” only when prescribing the provision which the court might make for the support of the wife pendente lite. But the courts have not always been as careful in their use of the word. They have frequently used it as a mere name for another and different allowance, made, and authorized to be made, under section 139 of the Civil Code. It was manifestly so used in this case, and has been so used in many others. By that section it is provided: “ Where a divorce is granted for an offense of the husband, the court may compel him to .... make such suitable'allowance to the wife for her support during her life, or for a shorter period, as the court may deem just, having regard to the circumstances of the parties respectively; and the court may, from time to time, modify its orders in these respects.”
That is exactly what the court did in this case, falling, however, into the quite common error of calling the *464allowance “permanent alimony.” If such an allowance is lawfully made, the simple misnomer of it would, not justify a court, even upon appeal, much less under this writ, in setting it aside. If it was excessive, or if the court erred in determining that it was a case in which such an allowance is authorized by law, the error was one to be corrected on appeal, not one to be set aside as for want of jurisdiction to make it. Under the code, which must “ be liberally construed with a view to effect its object and to promote justice” (sec. 4), the court will look at the substance of the thing, and not defeat its object merely because somebody has misnamed it. Alimony rests upon the obligation of the husband to support the wife; allowance for future support has been held to be in consideration of and as a substitute for her interest in the community property, or her right of dower or inheritance in the property of the husband; but under our code it is something more, and something which the legislature had a right to authorize and the court to grant, — compensation for a wrong done to her. It will he observed that this allowance cannot be made when the divorce is granted for the offense of the wife,— only when it is for an offense of the husband; so expressly proxúded by the statute, and so held in Everett v. Everett, 52 Cal. 383. It proceeds upon the theory that the husband entered upon an obligation which, among other things, bound him to support the wife during the period of their joint lives, and gave to her a right to share in the fruits and accumulations of his skill; that by his own wrong he has forced her to sever the relation xvhich enabled her to enforce this obligation, and for the wrong xxdnch thus deprived her of the benefit of the obligation, he must make her compensation. The court is to fix the measure of that compensation by “having regard to the circumstances of the parties respectively ”; those circumstances furnishing the best means for determining the extent of her loss. As these circumstances may differ at different *465times, “ the court may, from time to time, modify its orders in that respect.”
This allowance may be entirely independent of the property then in esse. It is the duty of the court, at the time of dissolving the marriage, to make proper division of the community property (secs. 146, 147), and, as we understand the law, it may, under section 139, in its discretion, compel the husband, in addition, to make what it deems suitable allowance for the future support of the wife during life or for a shorter period, having reference to their circumstances, etc. This by way of compensation for the deprivation growing out of his own wrong. In fixing this compensation or allowance, the court may regard the earnings of the husband, or his ability to earn money (Eidenmuller v. Eidemnuller, 37 Cal. 364), and may subsequently reduce the amount (Id.), or increase it (Ex parte Cottrell, 59 Cal. 417), as, in its opinion, the changed circumstances of the parties shall warrant, and may enforce compliance with the order by imprisonment for contempt (Ex parte Perkins, 18 Cal. 60; Ex parte Cottrell, supra); and the husband may purge himself of contempt by showing that he is unable to obey the order, and that his inability to pay the sum directed has not been occasioned by his own act for the purpose of avoiding payment. (Galland v. Galland, 44 Cal. 475; 13 Am. Rep. 167; Ex parte Cottrell, supra; Ex parte Wilson, 75 Cal. 580.)
The question of whether or not disobedience of the order for the payment of this allowance is contempt which may be punished by imprisonment, so ably discussed by counsel for petitioner, is no longer an open one in this state, as will be seen by the cases above cited, and perhaps others. The order for such allowance, or any subsequent order made in modification thereof, is subject to review7 upon appeal (Eidenmuller v. Eidenmuller, 37 Cal. 364); but until reversed it must be obeyed, or the party must purge himself of contempt by showing *466his inability to pay it, and that the inability is not occasioned by his own act for the purpose of avoiding payment.
The remaining questions presented in this case were fully considered in Ex parte Wilson, 75 Cal. 580, and we see no reason to depart from, the conclusion there reached.
Let the writ be dismissed.
Sharpstein, J., McFarland, J., Thornton, J., and Beatty, C. J., concurred.