Delaware has become the first state to ban child marriage.

Gov. John Carney (D) signed the measure into law on Wednesday, setting the minimum age for marriage in the state at 18, WDEL reported.

The law went into effect immediately. Under past law, minors in the state could be married at any age with the approval of a judge.

State Rep. Kimberly Williams (D), who sponsored the legislation, celebrated the new law.

“Now that we have closed this loophole in Delaware law, children will be protected from forced marriage and its dangerous consequences," she said, according to WDEL. "I am so proud that Delaware is leading the way to protect children, and I hope that other states follow suit.”