The energy source of the anomalous X-ray pulsars' (AXPs) is not understood,
hence their designation as anomalous. Unlike binary X-ray pulsars, no comp
anions are seen, so the energy cannot be supplied by accretion of matter fr
om a companion star. The loss of rotational energy, which powers radio puls
ars, is insufficient to power AXPs. Two models are generally considered: ac
cretion from a large disk left over from the birth process(2,3), or decay o
f a very strong magnetic field (10(15) G) associated with a 'magnetar'(4).
The lack of counterparts at other wavelengths has hampered progress in our
understanding of these objects. Here we report deep optical observations of
the field around 4U0142+61, which is the brightest AXP in X-rays. The sour
ce has no associated supernova remnant, which, together with its spin-down
timescale of similar to 10(5)yr (ref. 5), suggests that it may be relativel
y old. We find an object with peculiar optical colours at the position of t
he X-ray source, and argue that it is the optical counterpart. The optical
emission is too faint to admit the presence of a large accretion disk, but
may be consistent with magnetospheric emission from a magnetar.