The question of the origin of time's arrow is a major outstanding problem in physics. Here we present a mechanism for the emergence of a cosmological arrow of time from a confinement--deconfinement transition in a $ Z_2 $ lattice gauge theory living on the spin-network states of Loop Quantum Gravity. Following Chen and Vishwanath \cite{Chen2015Gauging}, who showed that time-reversal symmetry can be gauged on tensor network states, and using the spin-network/tensor-network correspondence \cite{Qi