  The black hole solutions in higher-dimensional spacetimes with the presence
of the power-Maxwell field, surrounded by quintessence, are investigated for
Einstein as well as Rastall gravity. The obtained solutions accommodate for
spherical, planar and hyperbolic symmetries with the presence of the
cosmological constant. Besides, we show that several known black hole solutions
in literature such as those for linear Maxwell theory and BTZ black hole can be
obtained as special cases. The implications of Rastall's theory related to the
present study and the thermodynamics of the black hole solutions are discussed.
