Complex sentence: He agrees to visit her apartment, but after learning of her true intentions, he purchases a painting and leaves.
Split into simpler sentences: He agrees to visit her apartment. But, after learning of her true intentions, he purchases a painting and leaves.