Capital is needed to accelerate the development process, but developing nations struggle with minimum resources. Since foreign direct investment (FDI) is essential to solve the funding shortage, developing nations make every effort to attract FDI to their countries. This study was conducted to explore the impact of institutional quality on sectoral FDI in Pakistan using time series data for the period from 1986 to 2019. To create a solid foundation for policy formulation, this study developed a single measure of institutional quality by utilizing a wide range of institutional indicators. It evaluates the impact of overall institution quality on sector-level FDI and examines the causal relationship between institutions and sectoral FDI with a clear focus on a single-country analysis. The dynamic simulated autoregressive distributed lag technique was employed to explore the impact of institutional quality and other factors on FDI. The results of the study explained that institutional quality and TO have a positive and significant effect on the FDI of the primary FDI sector at 5%, while in the case of the secondary sector, the effect of institutional quality, HDI and GDP on FDI inflow is significant at 10% and TO has a significant effect on secondary sector FDI at 5%. In addition, institutional quality and GDP have a positive relationship with tertiary sector FDI at 5%. The empirical findings show that higher institutional quality in emerging economies such as Pakistan encourages large transfers of technological advances through FDI, increasing the overall performance of the economy. This study found that institutional quality significantly increases sectoral FDI in Pakistan. Finally, this study prescribes some policy measures to increase FDI based on the findings.