The determinants of FDI inflows have been a subject of unremitting debate in the economic literature over the years. However, the role of country risk has received inadequate attention, especially in the context of the Visegrád countries, which comprise the Czech Republic, Hungary, Poland and Slovakia. Hence, this study examined whether country risk matters for FDI inflows into the Visegrád Four for the period 1991–2020. This study accounted for cross-sectional dependency, structural breaks and heterogeneous slopes in the panel of the four countries by employing the dynamic common correlated effect estimator. Additionally, country-wise fully modified least-squares regression was conducted for each country to test the robustness of the estimates. The empirical results revealed that country risk matters for the FDI inflows into the Visegrád countries, as it has a negative effect on the FDI inflows. Furthermore, both the overall panel and country-wise regressions established that economic and political risks are essential determinants of the FDI inflows, as both have a negative relationship with the FDI inflows. However, financial risk had weak and mixed impacts on the FDI inflows in the overall panel and country-wise regressions, respectively. These research outcomes highlight the need for appropriate macroeconomic and government authorities in the Visegrád economies to enhance the market capabilities of their economies by improving and upholding the social, institutional, corporate and macroeconomic structures, and as a way of achieving better country risk attributes.