Codebase merging after acquiring a company

Just an open-ended question about a tech challenge in merger/acquistion: what are the challenges of merging a company’s codebase into another?