New York City is suing five major oil companies, claiming they have contributed to global warming.

Mayor Bill de Blasio says the city will be seeking billions in the lawsuit to recoup money spent by the city for resiliency efforts related to climate change.

The defendants in the city's federal lawsuit are BP, Chevron, ConocoPhillips, Exxon Mobil and Royal Dutch Shell.

A BP spokesman declined comment. A Shell spokesman said climate change is a complex issue that should not be addressed by the courts. The other three did not immediately comment.

The lawsuit follows the city's announcement that it plans to divest its pension funds from fossil fuel companies.