In a Simon task the effects of spatial cues and attention on spatial stimulus coding were explored. Participants made speeded responses corresponding to the direction of target arrows that were preceded by peripherally presented cues. Cue validity varied across experiments as did the percentage of trials on which the target appeared peripherally or centrally. The data indicate (a) that targets are coded relative to multiple reference frames, (b) that spatial coding of a target is not affected when attention is shifted to the target, and (c) that an object serves as a referent for spatial coding of other objects even after its spatial code no longer activates responses.