Psalms 83:18

That men may know that thou, whose name alone is JEHOVAH, art the most high over all the earth.

In Jehoshaphat's crisis the plea against a coalition that included Moab and Ammon is united with Judah's prayer for God to confound its enemies and glorify His name. The verse asks God to confound and defeat the nations united against Israel that conspire to destroy His people. That defeat and deliverance is sought in order to glorify God's name. Its purpose is that people throughout the earth may know that He alone bears the name Jehovah and is Most High over all the earth.