God established the sun and moon as signs in the heavens in Genesis 1:14, appointing them for signs and appointed times. Their darkening on God's marked days signals judgment, as seen in the Sixth Seal, Joel, Isaiah 13 against Babylon, and Ezekiel 32 against Egypt. In the Sixth Seal, a great earthquake accompanies the sun darkening like sackcloth and the moon turning to blood, with falling stars and a receding sky announcing the Day of the Lord. Unlike predictable eclipses, these disturbances involve God shaking the heavens beyond human calculation, following the Fifth Seal's martyrdom and tribulation. Such deliberate acts produce terror, compel attention, and call inhabitants to repentance through fasting, weeping, and obedience, so one may stand before the Son of Man. Also see sermons and articles about 'Sun and Moon, Signs of'.
Revelation 6:12-14 I looked when He opened the sixth seal, and behold, there was a great earthquake; and the sun became black as sackcloth of hair, and the moon became like blood. And the stars of heaven fell to the earth, as a fig tree drops its late figs when it is shaken by a mighty wind. Then the sky receded as a scroll when it is rolled up, and every mountain and island was moved out of its place.
Joel 2:31 The sun shall be turned into darkness, And the moon into blood, Before the coming of the great and awesome day of the LORD.
Haggai 2:6 “For thus says the LORD of hosts: ‘Once more (it is a little while) I will shake heaven and earth, the sea and dry land;
Matthew 24:29 'Immediately after the tribulation of those days the sun will be darkened, and the moon will not give its light; the stars will fall from heaven, and the powers of the heavens will be shaken.