Complex sentence: There is learning taking place when a male engages in courtship behavior--somehow he learns by experience that after courtship rejection by females that have already mated, he does not pursue other mated females.
Split into simpler sentences: There is learning taking place when a male engages in courtship behavior. A male learns by experience, after courtship rejection by females that have already mated he learns not to pursue other mated females.