The Foreign Exchange Management Act (FEMA) is the legal framework that governs foreign exchange transactions in India. It outlines the guidelines for acquiring, holding, and transferring foreign currencies, ensuring compliance and stability in the Indian financial system.