Tris acts as a pH buffer to make a solution resistant to changes in pH. It works well as a buffer in the typical physiological pH range.