Hydrogen attack is a material degradation process which involves partial dissolution of the microstructure in favor of the growth of methane-filled cavities. The various physical-chemical processes involved are strongly coupled. We present a numerical microstructural model for two of these processes, based on a variational approach. (C) 2002 Acta Materialia Inc. Published by Elsevier Science Ltd. All rights reserved.