A legacy system is any software that's aging out -- technically outdated, no longer well-supported, or simply inconvenient -- but that the business still depends on, often because replacing it is expensive, risky, or because it holds years of irreplaceable historical data.
Legacy systems are the most common reason integration projects get complicated: they frequently lack a real API, meaning the only way in is RPA, direct database access, or manual export/import.
