Original: Kingdom Hearts: Chain of Memories takes place directly after the ending of the first game, Kingdom Hearts.
Simplified: The game starts immediately after the end of Kingdom Hearts.