In this paper, we extend the work on the AdS/QCD model to quadratic gravity to gain insight into the influence of gravity. We obtain an anisotropic black brane solution to a 5D Einstein–Gauss–Bonnet-two Maxwell-dilaton system. The background is specified by an arbitrary exponent, a dilaton field, a time component of the first Maxwell field, and a magnetic component of the second Maxwell field. The system in three cases has been investigated and in each case the effect of the parameter of theory, the anisotropic parameter has been considered. The blackening function supports the thermodynamical phase transition between small/large and AdS/large black brane for a suitable chemical potential and other parameters.