We study triply heavy baryons in the presence of a magnetic field background using the AdS/CFT correspondence. The force balance equation, derived from the total action of triply heavy baryons, serves as the basis for calculating the separation distance in both A and B configurations. It is found that with increasing magnetic field strength, the maximum separation distance continuously decreases. This suggests that stronger magnetic fields facilitate the dissolution of triply heavy baryons. We also find that the potential energy decreases with an increasing magnetic field, which implies that t...