New York (CNN Business) Companies headquartered in California can no longer have all-male boards.

That's according to a new law, enacted Sunday, which requires publicly traded firms in the state to place at least one woman on their board of directors by the end of 2019 — or face a penalty.

It also requires companies with five directors to add two women by the end of 2021, and companies with six or more directors to add at least three more women by the end of the same year.

It's the first such law on the books in the United States, though similar measures are common in European countries.

The measure was passed by California's state legislature last month . And it was signed into law by Gov. Jerry Brown on Sunday, along with a trove of other bills that look to "protect and support women, children and working families," the governor's office said in a release