As often in Buddhist countries, the local deities are co-opted as protectors and servants of Buddhism. This nat miraculously pointed to where the Mahabodhi image should be placed.