Fe3O4@HTC nanocapsules synthesized using a nanocasting method exhibited enhanced electromagnetic wave attenuation properties.