A variety of animals use Earth's magnetic field as a reference for their orientation behaviour. Although distinctive magnetoreception mechanisms have been postulated for many migrating or homing animals, the molecular mechanisms are still undefined. In this study, we found that zebrafish, a model organism suitable for genetic manipulation, responded to a magnetic field as weak as the geomagnetic field. Without any training, zebrafish were individually released into a circular arena that was placed in an artificial geomagnetic field, and their preferred magnetic directions were recorded. Individuals from five out of the seven zebrafish groups studied, groups mostly comprised of the offspring of predetermined pairs, showed bidirectional orientation with group-specific preferences regardless of close kinships. The preferred directions did not seem to depend on gender, age or surrounding environmental factors, implying that directional preference was genetically defined. The present findings may facilitate future study on the molecular mechanisms underlying magnetoreception.