The sand's protective character is a mixture of Gaara's chakra and his mother's love, who promised to protect him before her death. During Gaara's battle with his resurrected father, there came the point where his father got the upper hand. But moments before his attack connected, the sand residing in Gaara's gourd enveloped him, taking the form of his mother.