When Jeffrey Epstein created his Gratitude America Ltd. foundation in 2012, the nonprofit’s purpose was to “support the expression of gratitude for the ideals of America,” according to incorporation records filed in the U.S. Virgin Islands.

Instead, the money that flowed through the nonprofit followed an opaque path that appears to be designed to generate tax benefits.

In...