Toxocariasis is an infection caused by the larvae of Toxocara canis or Toxocara cati, which are parasitic roundworms typically found in dogs and cats. The condition primarily affects humans when they ingest infective eggs from contaminated soil or animal feces.