Harmful ecological affects were only avoided "by good luck" when a transformer oil company discharged between 5000 and 6000 litres of oil into the stormwater network last year.
The company eNZoil (NZ) Ltd, which takes waste transformer oil and refines it into a usable product, discharged the oil, which then ran into the Seaview Marina, on March 17 and 18, 2019.
Greater Wellington Council laid charges against eNZoil, which appeared before Judge Dwyer in the Wellington District Court on Wednesday and was fined $90,000 for the offence.
Dwyer said the discharge was a result of gross negligence and significant failures.
"Given the proximity to the marina and the direct connection to the stormwater system, they should have been aware of the risks," he said.