The invention relates to a marker device and a tracking system for tracking the marker device, wherein the marker device comprises a rotationally oscillatable magnetic object and wherein the rotational oscillation is excitable by an external magnetic field, i.e. a magnetic field which is generated by a magnetic field providing unit 20, 31 that is located outside of the marker device. The rotational oscillation of the magnetic object induces a current in coils, wherein based on these induced currents the position and optionally also the orientation of the marker device is determined. This wireless kind of tracking can be carried out with relatively small marker devices, which can be placed, for instance, in a guidewire, the marker devices can be read out over a relatively large distance and it is possible to use a single marker device for six degrees of freedom localization.