X-rays are detected from the pulsar-Be star binary PSR 1259-63 only after apastron passage. We suggest that the X-rays result from accretion onto the pulsar magnetosphere of matter captured from the Be star wind. The capture efficiency changes markedly at this phase, in line with the observations, provided that the wind is slow (approximately sonic) at large distances from the Be star.