Foreign direct investment (FDI) involves establishing business operations in another country, while foreign portfolio investment (FPI) involves purchasing securities of foreign companies without active involvement in management. FDI provides greater control and commitment but is riskier and harder to exit than FPI, which allows easier diversification through stocks and bonds. Both can benefit countries by increasing investment and market development, but FDI also transfers technology and jobs while FPI provides only financial assets.