Elephants are getting a pardon from Gov. Cuomo.

The governor signed a bill outlawing the use of the circus animals in entertainment performances – a move he says can double their lifespans.

The bill, introduced by Assemblywoman Amy Paulin (D-Westchester), takes effect immediately. It prohibits the animals from appearing in carnivals, circuses, parades and trade shows.

“The use of elephants in these types of settings is dangerous to their health and potentially abusive,” Cuomo said.

“The Elephant Protection Act furthers this administration’s efforts to fight animal cruelty, and create a stronger, more humane New York.”

The tricks that elephants perform to entertain cause stress, as well as physical and psychological harm, he said.

“Elephants have been exploited and abused in entertainment acts for too long,” Paulin said after her bill was signed. “Confinement, torture and unhealthy living conditions have led to early death for these intelligent, gentle animals.”

Passage of the bill makes New York a “leader in ending this horrible practice,” she said.

“Elephants will no longer be subjected to cruel treatment for our amusement.”

Sen. Terrence Murphy, a Westchester Republican, who introduced the legislation in his chamber, said “The law shows New York State is proving to be a voice for those who cannot speak for themselves.”

In addition to putting the elephants in danger, circus performances can be a public hazard. In 1995, elephants escaped a circus in Forest Park, Queens, causing a stampede and several injuries.

Ringling Brothers shut down after animal rights groups led it to yank elephants from its shows last year.