Hydraulic fracturing or fracking has led to a rapid growth of oil and gas production in the United States, but the impact of fracking on public health is an important but underresearched topic. We designed a methodology to study spatiotemporal correlations between the risk of fracking and stroke mortality. An annualized loss expectancy (ALE) model is applied to quantify the risk of fracking. The geographically and temporally weighted regression (GTWR) model is used to analyze spatiotemporal correlations of stroke mortality, fracking ALE, and nine other socioeconomic- and health-related factors. The analysis shows that fracking ALE is moderately correlated with stroke mortality at ages over 65 in most states of fracking, in addition to cardiovascular disease and drug overdose being positively correlated with stroke mortality. Furthermore, the correlations between fracking ALE and stroke mortality in men appear to be higher than in women near the Marcellus Shale, including Ohio, Pennsylvania, West Virginia, and Virginia, while stroke mortality among women is concentrated in the Great Plains, including Montana, Wyoming, New Mexico, and Oklahoma. Lastly, within two kilometers of the fracking mining activity, the level of benzene in the air was found to be significantly correlated with the fracking activity in Colorado.