Sore knees

Spinning classes and biking seem to have taken a toll on my knees. Is there some sort of exercise I can do that would maybe offset the negative effects that my favorite exercises have had on my knees?