The invention provides a system and method for treating an orthopedic condition using a hydrogel-forming composition, which forms a hydrogel in situ at a target location and at least bio-mechanically treats the condition. The invention also provides a hydrogel forming composition designed to form a hydrogel with desirable biocompatible and biomechanical properties. In some aspects the hydrogel is formed in a water-permeable casing, which is delivered to an orthopedic joint in a minimally invasive manner. In particular, the system and method can be used for intervertebral disc replacement or repair.