Every stem has a partner among the other nine, and the five pairings, called the combinations of the heavenly stems, are fixed: each stem combines with the one five places away from it. Gui pairs with Wu, and the tradition holds that a combined pair takes on a phase of its own distinct from either stem's native phase. The pairing is used in almanac work and in fate calculation, where a combination in a chart is read as a binding between the two positions that carry it.
The ten stems are older than the sexagenary cycle they now form half of. On the Shang oracle bones of the second millennium BCE they name the ten days of the xun, the Shang week, and Shang kings are known to history by posthumous names built on them, so a stem was a unit of the working calendar before it was a term of cosmological art. The five-phase and yin-yang readings attached to the stems are later, systematised under the Han, and the atlas records the two layers as two layers.
Gui is yin Water, the tenth and last of the stems, conventionally the mist, the dew or the small rain against the ocean of Ren. Its position at the end of the ten gives it a role in the arithmetic of the sexagenary cycle: since sixty is the least common multiple of ten and twelve, the tenth stem meets the twelfth branch only once in sixty, at the close of the whole cycle.
The stem's own attributes here are Water and yin polarity. Those two facts fix its place in the run of ten, since the stems proceed through the five phases in generation order taking the yang member first and the yin member second, and they fix how it is read wherever it appears, in the year, the month, the day or the double hour of a Four Pillars chart.
Sources Chinese Mathematical Astrology: Reaching Out to the StarsHo Peng Yoke with The Chinese Sexagenary Cycle and the Ritual Origins of the CalendarAdam Smith