The connection between the cursing of the fig tree and the cleansing of the temple in this text is that they both point to God’s judgment upon Israel.