New Hampshire's legislature passed legislation on Wednesday that paves the way for the state to legalize same-sex marriage.

The Manchester Union Leader reports that both chambers of the state legislature passed legislation that Gov. John Lynch (D) plans to sign it.

When Lynch signs it, New Hampshire will join Massachusetts, Vermont, Iowa, Connecticut and Maine in legalizing same-sex marriage.