It is caused by a fungal infection of the skin, and the fungi responsible for the infection are known as dermatophytes.
In this case, ringworm is an example of a zoonotic disease, or a disease transmitted from animals to humans.
Although cats are affected by ringworm more than dogs, dogs are also commonly affected.