We obtain exact black hole solutions to Einstein gravity coupled with a nonlinear electrodynamics field, in the presence of a cloud of strings and quintessence, as sources. The solutions have four parameters, namely m, k, a, and α, corresponding to the physical mass of the black hole, the nonlinear charge of a self-gravitating magnetic field, the cloud of strings, and the intensity of the quintessential fluid. The consequences of these sources on the regularity or singularity of the solutions, on their horizons, as well as on the energy conditions, are discussed. We study some aspects concerning the thermodynamics of the black hole, by taking into account the mass, Hawking temperature, and heat capacity and show how these quantities depend on the presence of the cloud of strings and quintessence, in the scenario considered.