This poem of praise glorifies Hashem by reminding you of the eternal covenant, which Hashem has made with His beloved Jewish people. By remembering that we are chosen as His eternal bride, we can find a reason to bless and praise Hashem even in the fires.