Nevertheless, there was long a law in place to forbid marriage between people with the same surname and ancestral paternal origin. In 1997, however, South Korea's Constitutional Court ruled the law unconstitutional, and the civil code was amended in 2005 to forbid only marriage between closely related people.