It is an occultation of one astronomical body by another. It is a result of physics and can be calculated thousands of years in advance.
Here are the cities where it’ll be strongest: https://www.greatamericaneclipse.com/best-places-to-view/