I don't believe that there's a structure by which an investor could both obtain a charitable contribution deduction and defer gains under the OZ rules. In order to receive a charitable contribution deduction, a contributor can't receive anything in return. But under the OZ rules, an investor contributes an amount of capital gain in exchange for an interest in a qualified opportunity fund (QOF). It may be possible to set up a structure that gives investors/donors the choice of either benefit, by (i) forming both a tax-exempt organization (TEO) and a QOF and (ii) having the TEO and QOF invest jointly in a qualified opportunity zone business. There are some issues for the TEO that are beyond the scope of this forum (e.g., whether it can even qualify as a tax-exempt under Section 501(c)(3) of the Code and whether it would recognize UBTI).