The Teaching for Understanding (TfU) provides a framework for teaching that is focused on student understanding. In computer science education, pair programming is a powerful tool for helping students develop sound problem solving, and programming skills. This article discusses how pair programming can be used in the Teaching for Understanding framework.