OPINION
COMPTON, Chief Justice.I. INTRODUCTION
Michael Batey appeals the superior court’s property division, alimony award, and attorney’s fees award. We reverse.
II. FACTS AND PROCEEDINGS
Michael Batey and Peggy Lampley were married in Alaska in March 1967. They separated in the fall of 1969. In February 1971 Michael and Earline Batey participated in a marriage ceremony in Nevada. Michael and Peggy were divorced in September 1971.
The superior court found that at the time of Earline’s marriage to Michael, Earline “was aware that [Michael] was still married and knew that the ceremony was invalid.” The court further found that after Michael’s divorce from Peggy, Earline “became convinced that the marriage was now valid.” Eventually, both Michael and Earline “came to believe that they were in fact married.”
Michael and Earline held themselves out as husband and wife for over twenty years. Throughout that period they filed joint federal tax returns, and Michael named Earline as his spouse with his health care provider. In 1977, after the birth of their only child, Earline expressed a desire to remarry, but they never did so.
In September 1993 Michael filed for divorce. In January 1994 Michael amended his complaint to allege that the marriage was void. The amended complaint sought only custody, child support, and a partition of the residence. Earline counterclaimed for child custody and support.
The superior court bifurcated the trial, considering first the issue of the validity of the marriage. The court concluded that the parties’ marriage was void, but that “there exists a valid putative marriage between the parties entitling [Earline] to a decree of divorce, equitable division of the parties’ property, and spousal support.” The superior court proceeded to hear and decide issues of custody, support, and property division.
Michael appeals.
III.DISCUSSION
Earline does not dispute that her marriage to Michael was void. See AS 25.05.021(1) (“Marriage is prohibited and void if performed when [ ] either party to the proposed marriage has a husband or wife living_”). Instead, she argues the superior court properly found a “putative marriage.” We have recently held that the superior court has the power to divide property acquired during a putative marriage which is found to be void. See Rodriguez v. Rodriguez, 908 P.2d 1007, 1011 (Alaska 1995).1 In the present case we *553must decide for the first time what constitutes a putative marriage. This is a question of law to which we apply our independent judgment. See Burcina v. City of Ketchikan, 902 P.2d 817, 820 n. 4 (Alaska 1995).
The putative marriage doctrine has been codified in Alaska at AS 25.05.051, which provides in part:
If, during the lifetime of a husband or wife with whom a marriage is still in force, a person remarries and the parties to the subsequent marriage live together as husband and wife, and one of the parties to the subsequent marriage believes in good faith that the former husband or -wife is dead or that the former marriage has been annulled or dissolved by a divorce or is without knowledge of the former marriage, then after the death or divorce of the other party to the former marriage, if they continue to live together as husband and wife in good faith on the part of one of them, they are legally married from the time of removal of the impediment....
The essential basis of a putative marriage is a good faith belief by at least one of the parties in the validity of the marriage. Id. In finding that a putative marriage existed, the superior court assumed the requisite good faith could develop over time, in this case sometime after Michael was divorced from Peggy. But we read AS 25.05.051 to require good faith to exist at the time of the putative marriage.
Our interpretation of AS 25.05.051 is based first on the language of the statute itself. See Borg-Warner Corp. v. Avco Carp., 850 P.2d 628, 633 n. 12 (Alaska 1993) (“Statutory construction begins with an analysis of the language of the statute construed in view of its purpose.”). The statute provides that if a good faith belief in the validity of a marriage is present, then after the impediment to the marriage’s validity is removed the parties will be considered legally married as long as they “continue to live together as husband and wife in good faith on the part of one of them.... ” AS 25.05.051 (emphasis added). The clear implication is that good faith must be present at all times, and must at the very least precede the removal of the impediment.
The purpose of AS 25.05.051 is to provide relief to an innocent spouse who enters into a marriage without knowledge of its invalidity. Allowing a person who knowingly enters into a bigamous marriage to claim later he or she eventually developed a good faith belief in the validity of that marriage would vitiate this purpose.2 The better rule, in light of reason and policy, is to require good faith at the inception of the putative marriage. See M.R.S. v. State, 897 P.2d 63, 66 (Alaska 1995) (“In interpreting a statute or rule, this court will adopt ‘the rule of law which is most persuasive in light of precedent, reason and policy.’ ”) (quoting Hernandez-Robaina v. State, 849 P.2d 783, 785 n. 2 (Alaska 1993)). Since Earline lacked a good faith belief in the validity of the marriage at its inception,3 she cannot take advantage of the protections afforded a puta*554tive spouse in AS 25.05.051.4
Earline argues AS 25.05.051 does not limit this court’s ability to create its own putative marriage doctrine. However, the legislature’s intent in enacting the marriage code, which includes AS 25.05.051, was “to provide a comprehensive marriage code for the state of Alaska.” Preamble, ch. 58, SLA 1963 (emphasis added). A common law definition of putative marriage which expands or alters the definition found in AS 25.05.051 would run counter to the expressly stated legislative intent.
IV. CONCLUSION
The superior court erred in finding a putative marriage. The court’s property division, alimony award, and attorney’s fees award, all of which flowed from the putative marriage finding, must therefore be reversed. See Rosson v. Rosson, 635 P.2d 469, 470 n. 4 (Alaska 1981) (“[PJarties who enter into a relationship that is neither a lawful marriage nor a bona fide putative marriage must be treated as unmarried_”). We leave it in the first instance to the superior court on remand to determine the appropriate relief.
REVERSED and REMANDED.
. Earline relies on Rodríguez to argue that the superior court has the power to divide properly and award alimony whether or not the parties are married. In Rodríguez we held that "[b]y including the phrase 'or action declaring a marriage void,' [in AS 25.24.160(a)] the legislature *553must have intended to allow the division of property acquired during a putative marriage which is found to be void....” Rodriguez, 908 P.2d at 1011. Thus, where a marriage is void, the superior court may divide property and award alimony under AS 25.24.160(a) only if the requirements of the putative marriage statute, AS 25.05.051, see infra, are satisfied.
. The dissent’s proposed application of the doctrine of quasi-estoppel also would run counter to the purpose of AS 25.05.051, for it would permit a person who knowingly enters into a bigamous marriage to obtain the protections reserved for putative spouses. Though not universally so, putative marriage cases often involve parties who have lived together and "held themselves out to the public" as married. We decline to permit a person to evade the "good faith” requirement simply by basing his or her claim on a theory of quasi-estoppel rather than on the existence of a putative marriage.
. Earline objects to the superior court’s finding, over conflicting testimony, that she knew Michael was still married when she married him. This finding is not clearly erroneous and therefore will not be disturbed. See Wright v. Wright, 904 P.2d 403, 405 n. 1 (Alaska 1995) ("This court will set aside a superior court’s factual determination only upon a finding of clear error.”); Parker v. Northern Mixing Co., 756 P.2d 881, 892 (Alaska 1988) ("It is the function of the trial court, not of this court, to judge witnesses' credibility and to weigh conflicting evidence.”).
. Other courts interpreting similar statutes have reached the same conclusion we reach today. See, e.g., Succession of Pigg, 228 La. 799, 84 So.2d 196, 197 (1955) (requiring good faith belief in validity of marriage at the time of its inception); Spearman v. Spearman, 482 F.2d 1203, 1206 (5th Cir.1973) ("A putative spouse is one whose marriage is legally invalid but who has engaged in (1) a marriage ceremony or a solemnization, on the (2) good faith belief in the validity of the marriage.”); see also 52 Am.Jur.2d Marriage § 114 (1970) (“The term ‘good faith,’ when used in connection with putative marriage, means an honest and reasonable belief that the marriage was valid at its mceptiqn...."). The superior court acknowledged “[t]here really aren’t any cases suggesting ... if you later on during the marriage believe somehow it's been ratified that ... you’re in the same position as the putative spouse who believed she was married at the time of entering into the marriage."