By habitat, tarantulas fall into 3 groups: arboreal — living in tall grass and shrubby vegetation, above the ground; terrestrial — oriented to the ground surface, though most of these species will burrow if given the chance (they use abandoned burrows, tree roots etc. as shelter); burrowers — digging deep tunnels underground and coming to the surface only in search of food.
The enclosure should match the tarantula’s size, to reduce potential stress and make catching prey easier. Young tarantulas of 5–10 mm can easily be kept in a PVC film canister or similar, moving to a bigger container every few moults. For adults, an enclosure with a 30×30 cm footprint is enough for most species; for terrestrial and burrowing tarantulas the height can be 30 cm, while for arboreals it should be vertical, around 40+ cm tall (the footprint can then be narrower, e.g. 30×20 cm). Ventilation should take up half the lid or part of the sides, and the mesh must be metal, since a tarantula may chew through plastic mosquito netting. A very important role of ventilation is preventing mould, which can kill a tarantula, so for optimal air circulation the vents should be placed on opposite sides of the enclosure.
The substrate plays an important role in regulating humidity and providing hiding places. Coco peat is best, though potting soil will do if you are sure no chemicals have been added. Arboreal and terrestrial tarantulas need a 5–7 cm layer of substrate, while for burrowers the substrate must fill 2/3 of the enclosure. Logs, branches for arboreals, bark (not from conifers), rocks, (artificial) plants etc. can be used as décor. It is important to sterilise everything that goes into the enclosure with boiling water or in the oven. Live plants bought from florists may have been sprayed with insecticide or other chemicals, so rinse them thoroughly before putting them in. Tarantulas do not need light — it even bothers them — but dark-coloured bulbs are recommended for heating. Since they come from the tropics, the temperature should range between 22 and 30 °C, while humidity is effectively regulated by regularly moistening one part of the substrate.
Tarantula genera found in the hobby (within each genus there are many species with similar or identical care requirements) — New World tarantulas (North and South America): arboreal Avicularia, Psalmopoeus, Iridopelma; terrestrial Acanthoscurria, Grammostola, Brachypelma; burrowers Ephebopus. Old World tarantulas (Asia, Africa and Australia): arboreal Poecilotheria, Lampropelma; terrestrial Pterinochilus, Selenocosmia, Hysterocrates; burrowers Citharischius, Haplopelma.