Medical facilities must obtain a license from regulatory authorities to operate legally, which involves meeting specific requirements related to staffing, equipment, safety protocols, and quality of care.