Azimuthal anisotropies of muons from charm and bottom hadron decays are measured in Pb+Pb collisions at sNN=5.02TeV. The data were collected with the ATLAS detector at the Large Hadron Collider in 2015 and 2018 with integrated luminosities of 0.5nb−1 and 1.4nb−1, respectively. The kinematic selection for heavy-flavor muons requires transverse momentum 4