Archaic or highly literary term for a close friend; in modern Japanese, 友達 or 友人 are the standard words.
In old waka poems, the word 友垣 is sometimes used.
Compound of 友 (とも, 'friend') and 垣 (かき, 'fence'), possibly implying a circle of friends. The exact historical derivation is uncertain.