The deadly explosion at BP PLC’s Texas City, Texas, plant was a result of unsafe working conditions caused by the oil giant’s appetite for profits, an attorney for four workers said Wednesday in the first trial stemming from the 2005 accident.

But an attorney for BP told jurors that the oil company didn’t knowingly put workers at risk.