The court heard that a piling machine fell over and rolled across the road before crushing a wall opposite during the city’s evening rush hour on 10 December 2007.
Tower Street in Hull was closed for several hours until it was made safe.
A HSE investigation found that the main contractor, Multibuild, was responsible for providing a stone platform for the machine to work from, but had failed to design or install it correctly.
Balfour Beatty Ground Engineering as a specialist subcontractor had the responsibility for safely carrying out the work.
After the hearing HSE Inspector Dave Redman said: “This incident could easily have resulted in disaster, and it is nothing short of a miracle that no one was killed or seriously injured given it occurred during the peak of the evening rush hour.
“It is every company’s responsibility to ensure that employees and members of the public are not exposed to danger from heavy construction machinery.
“There is extensive guidance governing safe working in this sector, and we hope today’s prosecution serves to remind people of their duties so that we don’t witness an incident of this kind again.”