We present two-loop results for the quark condensate in an external magnetic field within chiral perturbation theory using coordinate space techniques. At finite temperature, we explore the impact of the magnetic field on the pion-pion interaction in the quark condensate for arbitrary pion masses and derive the correct weak magnetic field expansion in the chiral limit. At zero temperature, we provide the complete two-loop representation for the vacuum energy density and the quark condensate.