Thanksgiving is the act of showing gratitude. Gratitude is the feeling of thankfulness, and thanksgiving is expressing that feeling, often to God, for what he has done.
See Gratitude.