In some embodiments, a material including wax may be used to contain and inhibit migration in a subsurface formation that has liquid hydrocarbon contaminants (for example, compounds such as benzene, toluene, ethylbenzene and xylene) condensed in fractures in the formation.