The working-class city of Oakland, Calif., wants to stop trains carrying crude, coal, and petroleum coke from reaching local refineries and export terminals.

The city council voted unanimously on Tuesday evening to “oppose” the “transportation of hazardous fossil fuel materials” along existing rail lines and through “densely populated” and waterfront areas — which includes much of the city.

The city will now formally urge California and regional governments to take action on oil-train safety, and will consider formally opposing projects that threaten to bring fossil fuel–bearing trains into Oakland.