Legal Definition
Substantially all refers to a significant portion of the whole, indicating that a large, but not necessarily the entirety, part of a set or quantity has been met or achieved.
Plain-English Translation
Imagine you have a big pile of toys. 'Substantially all' means that almost every single toy in the pile is accounted for, even if there are a few missing pieces.