In the SND experiment at VEPP-2M $e^+e^-$ collider the $phi(1020)topi^0pi^0gamma$ decay was studied and its branching ratio was measured: $B(phitopi^0pi^0gamma)=(1.221pm 0.098pm0.061)cdot10^{-4}$. It was shown, that $f_0(980)gamma$ intermediate state dominates in this decay and the $f_0(980)$-meson parameters were obtained.