No pet left behind.

Gov. Andrew Cuomo signed legislation into law Tuesday that allows pets to be brought aboard any public transit service during an emergency.

During Superstorm Sandy, many pet owners refused to evacuate their flooded neighborhoods because they had no way to transport their dogs and cats, the governor said.

“For many New Yorkers, their pets are members of their families, and no one should be forced to abandon them in the event of an evacuation,” Cuomo said.

“I’m proud to sign this common-sense, humane legislation to bring comfort to pet owners in times of distress.”

The bill was authored by Assemblywoman Linda Rosenthal (D-Manhattan) and Sen. Andrew Lanza (R-Staten Island).

Lanza noted current law allows pets to be transported on MTA buses and trains.

The new law expands the scope to cover all forms of public transit, including the Port Authority’s PATH trains.

New Jersey passed a similar law in 2013. Action is needed by the legislatures of both states for a law covering the Port Authority to take effect.