Psalm 21 is a royal psalm of thanksgiving in which David praises God for granting the king’s heartfelt desires, bestowing long life, glory, and victory. It celebrates God’s strength and favor toward the anointed king while affirming that the Lord’s enemies will ultimately face judgment and defeat.