Smart magnetic materials can be used to correct deformities in the colon, such as those caused by Crohn’s disease. The materials can be used to create a “magnetic scaffold” that can be customized to the individual’s anatomy. This scaffold can be used to support the colon and help it heal.